File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,13 @@ locally. More information is available in the [CI Readme][ci-readme].
85
85
[ travis-ci ] : https://travis-ci.org/nix-rust/nix
86
86
[ ci-readme ] : ci/README.md
87
87
88
+ ### Disabling a test in the CI environment
89
+
90
+ Sometimes there are features that cannot be tested in the CI environment.
91
+ To stop a test from running under CI, add ` #[cfg_attr(travis, ignore)] `
92
+ to it. Please include a comment describing the reason it shouldn't run
93
+ under CI, and a link to an upstream issue if possible!
94
+
88
95
## bors, the bot who merges all the PRs
89
96
90
97
All pull requests are merged via [ bors] , an integration bot. After the
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
main () {
6
+ # Add a cfg spec to allow disabling specific tests under CI.
7
+ if [ " $TRAVIS " = true ]; then
8
+ export RUSTFLAGS=--cfg=travis
9
+ fi
10
+
6
11
# Build debug and release targets
7
12
cross build --target $TARGET
8
13
cross build --target $TARGET --release
You can’t perform that action at this time.
0 commit comments