summaryrefslogtreecommitdiff
path: root/ci/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/script.sh')
-rw-r--r--ci/script.sh5
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