Prechádzať zdrojové kódy

pre-push, yarn cargo-checks clippy before tests, using release build

saves disk space. cargo test and cargo build always now seem to rebuild wasm after
a clippy run which we were trying to protect againt by not using release for test and clippy
Mokhtar Naamani 4 rokov pred
rodič
commit
a97876dd3b
1 zmenil súbory, kde vykonal 3 pridanie a 5 odobranie
  1. 3 5
      devops/git-hooks/pre-push

+ 3 - 5
devops/git-hooks/pre-push

@@ -3,10 +3,8 @@ set -e
 
 export WASM_BUILD_TOOLCHAIN=nightly-2020-05-23
 
-echo '+cargo test --all'
-cargo test --all
-
 echo '+cargo clippy --all -- -D warnings'
-BUILD_DUMMY_WASM_BINARY=1 cargo clippy --all -- -D warnings
-
+BUILD_DUMMY_WASM_BINARY=1 cargo clippy --release --all -- -D warnings
 
+echo '+cargo test --all'
+cargo test --release --all