Browse Source

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 năm trước cách đây
mục cha
commit
a97876dd3b
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  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