Don't run integration tests in forks

This commit is contained in:
flip1995 2018-11-27 22:01:22 +01:00
parent b2601beb35
commit 27a69bd66c
No known key found for this signature in database
GPG key ID: E8E897A5870E41C2

View file

@ -41,6 +41,9 @@ install:
fi
fi
# disabling the integration tests in forks should be done with
# if: fork = false
# but this is currently buggy travis-ci/travis-ci#9118
matrix:
include:
- os: osx # run base tests on both platforms
@ -48,23 +51,36 @@ matrix:
- os: linux
env: BASE_TESTS=true
- os: windows
env: BASE_TEST=true
env: BASE_TESTS=true
- env: INTEGRATION=rust-lang/cargo
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-random/rand
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-lang-nursery/stdsimd
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-lang/rustfmt
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-lang-nursery/futures-rs
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-lang-nursery/failure
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-lang-nursery/log
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-lang-nursery/chalk
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-lang/rls
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=chronotope/chrono
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=serde-rs/serde
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=Geal/nom
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=hyperium/hyper
if: repo =~ /^rust-lang\/rust-clippy$/
allow_failures:
- os: windows
env: BASE_TEST=true
env: BASE_TESTS=true
# prevent these jobs with default env vars
exclude:
- os: linux