Browse Source

travis: try to skip wasm build when running tests

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

+ 5 - 3
.travis.yml

@@ -7,7 +7,7 @@ language: rust
 # sometimes break the build. When cache is enabled do not use the produced WASM build.
 # This also means the binary should not be used to produce the final chainspec file (because the same
 # one is embedded in the binary)
-cache: cargo
+# cache: cargo
 
 rust:
   - stable
@@ -38,9 +38,11 @@ before_script:
 script:
   # we set release as build type for all steps to benefit from already compiled packages in prior steps
   # skipping clippy ...
+  - cargo clean
   - 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}
+  - BUILD_DUMMY_WASM_BINARY=1 cargo test --release --verbose --all --target=${TARGET}
+  - BUILD_DUMMY_WASM_BINARY=0 WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release --target=${TARGET} -p joystream-node
+  - ls -l target/release/wbuild/joystream-node-runtime
 
 before_deploy:
   - cp ./target/${TARGET}/release/joystream-node .