Browse Source

travis: fail if cargo test and clippy fail

Mokhtar Naamani 4 years ago
parent
commit
25835bab7f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      .travis.yml

+ 3 - 3
.travis.yml

@@ -58,7 +58,7 @@ script:
       docker run -u root \
       docker run -u root \
         --volume ${TRAVIS_BUILD_DIR}:/home/cross/project \
         --volume ${TRAVIS_BUILD_DIR}:/home/cross/project \
           joystream/rust-raspberry \
           joystream/rust-raspberry \
-        test --release
+        test --release && \
       docker run -u root \
       docker run -u root \
         --volume ${TRAVIS_BUILD_DIR}:/home/cross/project \
         --volume ${TRAVIS_BUILD_DIR}:/home/cross/project \
           joystream/rust-raspberry \
           joystream/rust-raspberry \
@@ -73,8 +73,8 @@ script:
       docker cp temp-container-joystream-node:/joystream/runtime.compact.wasm joystream_runtime.wasm
       docker cp temp-container-joystream-node:/joystream/runtime.compact.wasm joystream_runtime.wasm
       docker rm temp-container-joystream-node
       docker rm temp-container-joystream-node
     else
     else
-      cargo test --release --verbose --all --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=1 cargo clippy --release --target=${TARGET} -- -D warnings && \
       cargo build --release --target=${TARGET}
       cargo build --release --target=${TARGET}
     fi
     fi