Skip to content

Commit 4f5db94

Browse files
committed
Fix UI tests to specific toolchain version
1 parent a9b5f22 commit 4f5db94

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.gitlab-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,15 @@ test-dylint:
109109
stage: test
110110
<<: *docker-env
111111
script:
112+
# We need to fix this test to a toolchain because of the UI tests
113+
# We can't use stable here because the UI tests freak out if there are dots in the drivers file name
114+
- rustup default nightly-2022-06-30
115+
- rustup component add rustfmt clippy rust-src rustc-dev llvm-tools-preview
116+
112117
- rusty-cachier snapshot create
113118
- cd ink_linting/
114119
- mv _Cargo.toml Cargo.toml
115120

116-
- export RUSTC_BOOTSTRAP=1
117121
- cargo check --verbose
118122
- cargo +nightly fmt --verbose --all -- --check
119123
- cargo clippy --verbose -- -D warnings;

ink_linting/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ cargo build --release
1313

1414
# Run the linting on a contract.
1515
DYLINT_LIBRARY_PATH=$PWD/target/release cargo dylint contract_instantiated
16-
--manifest-path ../ink/examples/erc20/Cargo.toml
17-
```
16+
--manifest-path ../ink/examples/erc20/Cargo.toml
17+
18+
# The UI tests are written against a specific toolchain version. If you wish to run them locally:
19+
cargo +nightly-2022-06-30 test
20+
```

0 commit comments

Comments
 (0)