-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #901 - fitzgen:split-up-ci-into-many-jobs, r=emilio
Run many CI jobs in parallel Our CI is performing multiple different jobs: * For every libclang version we support: * With both debug and release profiles: * Generating bindings from our test headers, with and without extra assertions, and asserting there is no diff from the expectations. * Compiling and testing the generated bindings. * Compiling and testing the bindgen-integration crate. * Testing the md book. * Asserting that there aren't any system includes in any of the test headers. * Asserting that all the pub functions have doc comments. We were previously doing these things sequentially for each libclang version. This commit breaks these jobs up explicitly and runs each of them one at a time so that they can each be run in parallel, on different Travis CI machines. r? @emilio
- Loading branch information
Showing
3 changed files
with
64 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeu | ||
cd "$(dirname "$0")/.." | ||
|
||
# Note that `$BINDGEN_PROFILE` is never in quotes so that it expands to nothing | ||
# (not even an empty string argument) when the variable is empty. This is | ||
# necessary so we don't pass an unexpected flag to cargo. | ||
|
||
export RUST_BACKTRACE=1 | ||
|
||
case "$BINDGEN_JOB" in | ||
"test") | ||
cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES" | ||
./ci/assert-no-diff.sh | ||
;; | ||
|
||
"integration") | ||
cd ./bindgen-integration | ||
cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES" | ||
;; | ||
|
||
"expectations") | ||
cd ./tests/expectations | ||
cargo test $BINDGEN_PROFILE | ||
;; | ||
|
||
"misc") | ||
./ci/assert-docs.sh | ||
./ci/test-book.sh | ||
./ci/no-includes.sh | ||
# `rustfmt` isn't reaching a fixed point on bindgen | ||
# code... https://github.com/rust-lang-nursery/rustfmt/issues/1376 | ||
# ./ci/assert-rustfmt.sh | ||
;; | ||
|
||
*) | ||
echo "Error! Unknown \$BINDGEN_JOB: '$BINDGEN_JOB'" | ||
exit 1 | ||
esac |
This file was deleted.
Oops, something went wrong.