Skip to content

Commit

Permalink
add run bench to check-before-push but keep it commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Dec 16, 2024
1 parent e3ccedb commit d0a044a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/check-before-push.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ REM if %errorlevel% neq 0 exit /b %errorlevel%
cargo test --release --all --all-features
if %errorlevel% neq 0 exit /b %errorlevel%

REM cargo bench --workspace --all-targets --all-features --target x86_64-unknown-linux-gnu
if %errorlevel% neq 0 exit /b %errorlevel%

cargo doc --workspace --all-features --no-deps
if %errorlevel% neq 0 exit /b %errorlevel%

Expand Down Expand Up @@ -68,4 +71,7 @@ if %errorlevel% neq 0 exit /b %errorlevel%
cargo doc --workspace --all-features --no-deps
if %errorlevel% neq 0 exit /b %errorlevel%

REM cargo bench --workspace --all-targets --all-features --target x86_64-unknown-linux-gnu
if %errorlevel% neq 0 exit /b %errorlevel%

cd ..
2 changes: 2 additions & 0 deletions scripts/check-before-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ cargo clippy --all-targets --release --target x86_64-unknown-linux-gnu -- \
-A clippy::missing_errors_doc \
-A clippy::type_complexity
cargo test --release --all --all-features --target x86_64-unknown-linux-gnu
# cargo bench --workspace --all-targets --all-features --target x86_64-unknown-linux-gnu
cargo doc --workspace --all-features --no-deps --target x86_64-unknown-linux-gnu

# cargo publish --dry-run --allow-dirty --target x86_64-unknown-linux-gnu
Expand All @@ -43,5 +44,6 @@ cargo clippy --all-targets --release --target x86_64-unknown-linux-gnu -- \
-A clippy::missing_errors_doc \
-A clippy::type_complexity
cargo test --release --all --all-features --target x86_64-unknown-linux-gnu
# cargo bench --workspace --all-targets --all-features --target x86_64-unknown-linux-gnu
cargo doc --workspace --all-features --no-deps --target x86_64-unknown-linux-gnu
cd ..

0 comments on commit d0a044a

Please sign in to comment.