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 - os: osx # run base tests on both platforms
47 env: CARGO_INCREMENTAL=0 BASE_TESTS=true
48 - env: INTEGRATION=rust-lang/cargo
49 if: repo =~ /^rust-lang\/rust-clippy$/
50 - env: INTEGRATION=rust-random/rand
51 if: repo =~ /^rust-lang\/rust-clippy$/
52 - env: INTEGRATION=rust-lang-nursery/stdsimd
53 if: repo =~ /^rust-lang\/rust-clippy$/
54 - env: INTEGRATION=rust-lang/rustfmt
55 if: repo =~ /^rust-lang\/rust-clippy$/
56 - env: INTEGRATION=rust-lang-nursery/futures-rs
57 if: repo =~ /^rust-lang\/rust-clippy$/
58 - env: INTEGRATION=rust-lang-nursery/failure
59 if: repo =~ /^rust-lang\/rust-clippy$/
60 - env: INTEGRATION=rust-lang-nursery/log
61 if: repo =~ /^rust-lang\/rust-clippy$/
62 - env: INTEGRATION=rust-lang-nursery/chalk
63 if: repo =~ /^rust-lang\/rust-clippy$/
64 - env: INTEGRATION=rust-lang/rls
65 if: repo =~ /^rust-lang\/rust-clippy$/
66 - env: INTEGRATION=chronotope/chrono
67 if: repo =~ /^rust-lang\/rust-clippy$/
68 - env: INTEGRATION=serde-rs/serde
69 if: repo =~ /^rust-lang\/rust-clippy$/
70 - env: INTEGRATION=Geal/nom
71 if: repo =~ /^rust-lang\/rust-clippy$/
72 - env: INTEGRATION=hyperium/hyper
73 if: repo =~ /^rust-lang\/rust-clippy$/
76 env: CARGO_INCREMENTAL=0 BASE_TESTS=true
77 # prevent these jobs with default env vars
86 cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
87 RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
88 travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH
90 export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
92 if [ -z ${INTEGRATION} ]; then
93 ./ci/base-tests.sh && sleep 5
95 ./ci/integration-tests.sh && sleep 5
100 if [ $(uname) == Linux ]; then
102 if [ -z ${INTEGRATION} ]; then
105 echo "Not deploying, because we're in an integration test run"