-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[githooks][pre-push] Run steps in parallel
While we're here, add `-q` flags to all `cargo` invocations in scripts in the `ci` directory. On my 2020 M1 MacBook Air, this reduces the time to execute `./githooks/pre-push` from 3.9s to 1.4s.
- Loading branch information
Showing
5 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
echo "Running pre-push git hook: $0" | ||
# forego redirecting stdout to /dev/null on check_fmt.sh because the output | ||
# from cargofmt is useful (and the good stuff is not delivered by stderr) | ||
./ci/check_fmt.sh | ||
./ci/check_job_dependencies.sh > /dev/null | ||
./ci/check_msrv.sh > /dev/null | ||
./ci/check_readme.sh > /dev/null | ||
./ci/check_versions.sh > /dev/null | ||
# Forego redirecting stdout to /dev/null on check_fmt.sh because the output from | ||
# `cargo fmt` is useful (and the good stuff is not delivered by stderr). | ||
# | ||
# Background all jobs and wait for them so they can run in parallel. | ||
./ci/check_fmt.sh & | ||
./ci/check_job_dependencies.sh >/dev/null & | ||
./ci/check_msrv.sh >/dev/null & | ||
./ci/check_readme.sh >/dev/null & | ||
./ci/check_versions.sh >/dev/null & | ||
|
||
wait |