11 # Don't build these branches
23 if [ -z ${INTEGRATION} ]; then
24 rustup component add rustfmt || cargo install --git https://github.com/rust-lang/rustfmt/ --force
25 if [ "$TRAVIS_OS_NAME" == "linux" ]; then
29 npm install remark-cli remark-lint
31 if [ "$TRAVIS_OS_NAME" == "windows" ]; then
32 choco install windows-sdk-10.0
36 # disabling the integration tests in forks should be done with
38 # but this is currently buggy travis-ci/travis-ci#9118
42 # Builds that are executed for every PR
43 - os: osx # run base tests on both platforms
48 env: CARGO_INCREMENTAL=0 BASE_TESTS=true
50 # Builds that are only executed when a PR is r+ed or a try build is started
51 # We don't want to run these always because they go towards
52 # the build limit within the Travis rust-lang account.
53 # The jobs are approximately sorted by execution time
54 # disabled cargo and rls integration test due to https://github.com/rust-lang/rust-clippy/issues/4121
55 #- env: INTEGRATION=rust-lang/cargo
56 # if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
57 - env: INTEGRATION=rust-lang-nursery/chalk
58 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
59 #- env: INTEGRATION=rust-lang/rls
60 # if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
61 - env: INTEGRATION=Geal/nom
62 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
63 - env: INTEGRATION=rust-lang/rustfmt
64 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
65 - env: INTEGRATION=hyperium/hyper
66 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
67 - env: INTEGRATION=bluss/rust-itertools
68 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
69 - env: INTEGRATION=serde-rs/serde
70 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
71 - env: INTEGRATION=rust-lang-nursery/stdsimd
72 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
73 - env: INTEGRATION=rust-random/rand
74 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
75 - env: INTEGRATION=rust-lang-nursery/futures-rs
76 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
77 - env: INTEGRATION=Marwes/combine
78 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
79 - env: INTEGRATION=rust-lang-nursery/failure
80 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
81 - env: INTEGRATION=rust-lang-nursery/log
82 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
83 - env: INTEGRATION=chronotope/chrono
84 if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
87 env: CARGO_INCREMENTAL=0 BASE_TESTS=true
88 # prevent these jobs with default env vars
98 export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
100 if [ -z ${INTEGRATION} ]; then
101 ./ci/base-tests.sh && sleep 5
103 ./ci/integration-tests.sh && sleep 5
108 if [ $(uname) == Linux ]; then
110 if [ -z ${INTEGRATION} ]; then
113 echo "Not deploying, because we're in an integration test run"