Skip to content

Commit

Permalink
Fix UI tests to specific toolchain version
Browse files Browse the repository at this point in the history
  • Loading branch information
athei committed Aug 20, 2022
1 parent a9b5f22 commit 4f5db94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,15 @@ test-dylint:
stage: test
<<: *docker-env
script:
# We need to fix this test to a toolchain because of the UI tests
# We can't use stable here because the UI tests freak out if there are dots in the drivers file name
- rustup default nightly-2022-06-30
- rustup component add rustfmt clippy rust-src rustc-dev llvm-tools-preview

- rusty-cachier snapshot create
- cd ink_linting/
- mv _Cargo.toml Cargo.toml

- export RUSTC_BOOTSTRAP=1
- cargo check --verbose
- cargo +nightly fmt --verbose --all -- --check
- cargo clippy --verbose -- -D warnings;
Expand Down
7 changes: 5 additions & 2 deletions ink_linting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ cargo build --release

# Run the linting on a contract.
DYLINT_LIBRARY_PATH=$PWD/target/release cargo dylint contract_instantiated
--manifest-path ../ink/examples/erc20/Cargo.toml
```
--manifest-path ../ink/examples/erc20/Cargo.toml

# The UI tests are written against a specific toolchain version. If you wish to run them locally:
cargo +nightly-2022-06-30 test
```

0 comments on commit 4f5db94

Please sign in to comment.