Explorar o código

joystream-node.Dockerfile include clippy tests

Mokhtar Naamani %!s(int64=4) %!d(string=hai) anos
pai
achega
ac1f2a4f8c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      joystream-node.Dockerfile

+ 3 - 2
joystream-node.Dockerfile

@@ -4,8 +4,9 @@ WORKDIR /joystream
 COPY . /joystream
 
 # Build all cargo crates
-# Ensure our tests pass before actual build
-RUN WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo test --release --all && \
+# Ensure our tests and linter pass before actual build
+RUN WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 BUILD_DUMMY_WASM_BINARY=1 cargo clippy --release --all -- -D warnings \
+    WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo test --release --all && \
     WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release
 
 FROM debian:stretch