Browse Source

docker: test and build in same step

Mokhtar Naamani 4 years ago
parent
commit
7df778401a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      devops/dockerfiles/node-and-runtime/Dockerfile

+ 3 - 3
devops/dockerfiles/node-and-runtime/Dockerfile

@@ -4,9 +4,9 @@ WORKDIR /joystream
 COPY . /joystream
 
 # Build all cargo crates
-# Ensure our tests pass before we build release
-RUN WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo test --release --all
-RUN WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release
+# Ensure our tests pass before actual build
+RUN WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo test --release --all && \
+    WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release
 
 FROM debian:stretch
 LABEL description="Joystream node"