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-preview || 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
50 - os: osx # run base tests on both platforms
56 - env: INTEGRATION=rust-lang/cargo
57 if: repo =~ /^rust-lang\/rust-clippy$/
58 - env: INTEGRATION=rust-random/rand
59 if: repo =~ /^rust-lang\/rust-clippy$/
60 - env: INTEGRATION=rust-lang-nursery/stdsimd
61 if: repo =~ /^rust-lang\/rust-clippy$/
62 - env: INTEGRATION=rust-lang/rustfmt
63 if: repo =~ /^rust-lang\/rust-clippy$/
64 - env: INTEGRATION=rust-lang-nursery/futures-rs
65 if: repo =~ /^rust-lang\/rust-clippy$/
66 - env: INTEGRATION=rust-lang-nursery/failure
67 if: repo =~ /^rust-lang\/rust-clippy$/
68 - env: INTEGRATION=rust-lang-nursery/log
69 if: repo =~ /^rust-lang\/rust-clippy$/
70 - env: INTEGRATION=rust-lang-nursery/chalk
71 if: repo =~ /^rust-lang\/rust-clippy$/
72 - env: INTEGRATION=rust-lang/rls
73 if: repo =~ /^rust-lang\/rust-clippy$/
74 - env: INTEGRATION=chronotope/chrono
75 if: repo =~ /^rust-lang\/rust-clippy$/
76 - env: INTEGRATION=serde-rs/serde
77 if: repo =~ /^rust-lang\/rust-clippy$/
78 - env: INTEGRATION=Geal/nom
79 if: repo =~ /^rust-lang\/rust-clippy$/
80 - env: INTEGRATION=hyperium/hyper
81 if: repo =~ /^rust-lang\/rust-clippy$/
85 # prevent these jobs with default env vars
94 cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
95 RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
96 travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH
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"