Browse Source

travis: cargo test does require nightly

Mokhtar Naamani 5 years ago
parent
commit
4319fc3734
1 changed files with 3 additions and 6 deletions
  1. 3 6
      .travis.yml

+ 3 - 6
.travis.yml

@@ -16,8 +16,9 @@ matrix:
 before_install:
   - rustup component add rustfmt
   - cargo fmt --all -- --check
-    # Tests do not depend on nightly or was targets. We do them
-    # here so the arm build doesn't proceed unless tests pass
+  - rustup default stable
+  - rustup update nightly
+  - rustup target add wasm32-unknown-unknown --toolchain nightly
   - cargo test --verbose --all
 
 install:
@@ -25,10 +26,6 @@ install:
     if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]
     then
       docker pull joystream/rust-raspberry
-    else
-      rustup update nightly
-      rustup target add ${TARGET}
-      rustup target add wasm32-unknown-unknown --toolchain nightly
     fi
 
 script: