11 # Don't build these branches
23 # work-around for issue https://github.com/travis-ci/travis-ci/issues/6307
24 # might not be necessary in the future
25 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
26 command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
32 if [ -z ${INTEGRATION} ]; then
33 rustup component add rustfmt || cargo install --git https://github.com/rust-lang/rustfmt/ --force
34 if [ "$TRAVIS_OS_NAME" == "linux" ]; then
38 npm install remark-cli remark-lint
40 if [ "$TRAVIS_OS_NAME" == "windows" ]; then
41 choco install windows-sdk-10.0
45 # disabling the integration tests in forks should be done with
47 # but this is currently buggy travis-ci/travis-ci#9118
51 - os: osx # run base tests on both platforms
56 env: CARGO_INCREMENTAL=0 BASE_TESTS=true
57 - env: INTEGRATION=rust-lang/cargo
58 if: repo =~ /^rust-lang\/rust-clippy$/
59 - env: INTEGRATION=rust-random/rand
60 if: repo =~ /^rust-lang\/rust-clippy$/
61 - env: INTEGRATION=rust-lang-nursery/stdsimd
62 if: repo =~ /^rust-lang\/rust-clippy$/
63 - env: INTEGRATION=rust-lang/rustfmt
64 if: repo =~ /^rust-lang\/rust-clippy$/
65 - env: INTEGRATION=rust-lang-nursery/futures-rs
66 if: repo =~ /^rust-lang\/rust-clippy$/
67 - env: INTEGRATION=rust-lang-nursery/failure
68 if: repo =~ /^rust-lang\/rust-clippy$/
69 - env: INTEGRATION=rust-lang-nursery/log
70 if: repo =~ /^rust-lang\/rust-clippy$/
71 - env: INTEGRATION=rust-lang-nursery/chalk
72 if: repo =~ /^rust-lang\/rust-clippy$/
73 - env: INTEGRATION=rust-lang/rls
74 if: repo =~ /^rust-lang\/rust-clippy$/
75 - env: INTEGRATION=chronotope/chrono
76 if: repo =~ /^rust-lang\/rust-clippy$/
77 - env: INTEGRATION=serde-rs/serde
78 if: repo =~ /^rust-lang\/rust-clippy$/
79 - env: INTEGRATION=Geal/nom
80 if: repo =~ /^rust-lang\/rust-clippy$/
81 - env: INTEGRATION=hyperium/hyper
82 if: repo =~ /^rust-lang\/rust-clippy$/
85 env: CARGO_INCREMENTAL=0 BASE_TESTS=true
86 # prevent these jobs with default env vars
95 cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
96 RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
97 travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH
99 export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
101 if [ -z ${INTEGRATION} ]; then
102 ./ci/base-tests.sh && sleep 5
104 ./ci/integration-tests.sh && sleep 5
109 if [ $(uname) == Linux ]; then
111 if [ -z ${INTEGRATION} ]; then
114 echo "Not deploying, because we're in an integration test run"