Przeglądaj źródła

travis: too many clippy errors with nightly!

Mokhtar Naamani 4 lat temu
rodzic
commit
fddbc222cc
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      .travis.yml

+ 4 - 4
.travis.yml

@@ -30,7 +30,7 @@ install:
   # becuase we want to run it with nighly to avoid having to set BUILD_DUMMY_WASM_BINARY=0
   # setting that variable requires changing it in a later run of cargo bulid to ensure runtime/build.rs
   # actually builds the runtime .. the behaviour is a bit odd so choosing to avoid messing with it.
-  - rustup component add clippy --toolchain nightly-2020-05-23
+  - rustup component add clippy
 
 before_script:
   - cargo fmt --all -- --check
@@ -38,9 +38,9 @@ before_script:
 script:
   # we set release as build type for all steps to benefit from already compiled packages in prior steps
   # skipping clippy ...
-  - cargo +nightly-2020-05-23 clippy --release --target=${TARGET} -- -D warnings
-  - cargo +nightly-2020-05-23 test --release --verbose --all --target=${TARGET}
-  - WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo +nightly build --release --target=${TARGET}
+  - BUILD_DUMMY_WASM_BINARY=1 cargo clippy --release --target=${TARGET} -- -D warnings
+  - cargo test --release --verbose --all --target=${TARGET}
+  - BUILD_DUMMY_WASM_BINARY=0 WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release --target=${TARGET}
 
 before_deploy: