diff options
author | Kamal Marhubi <kamal@marhubi.com> | 2017-04-16 23:51:18 -0400 |
---|---|---|
committer | Kamal Marhubi <kamal@marhubi.com> | 2017-04-16 23:51:18 -0400 |
commit | 25ce053a2d42a94bcc2c27883eb81c2fe45e5a69 (patch) | |
tree | 45e4f7cae290d2062b1d52ab0cf376865ad9890a /ci/script.sh | |
parent | 2f780ef0052587415e2a3dfe934acc0e30eebee0 (diff) | |
download | nix-25ce053a2d42a94bcc2c27883eb81c2fe45e5a69.zip |
ci: Allow skipping tests when running under CI
This adds `--cfg=travis` to builds under CI, allowing tests to be
conditionally ignored by marking them with
#[cfg_attr(travis, ignore)]
refs #568
Diffstat (limited to 'ci/script.sh')
-rw-r--r-- | ci/script.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh index 39c3aeec..df61c35a 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -3,6 +3,11 @@ set -ex main() { + # Add a cfg spec to allow disabling specific tests under CI. + if [ "$TRAVIS" = true ]; then + export RUSTFLAGS=--cfg=travis + fi + # Build debug and release targets cross build --target $TARGET cross build --target $TARGET --release |