فهرست منبع

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 سال پیش
والد
کامیت
a97876dd3b
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  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