From 27a69bd66c4d15608d093b75c4647fc10d88882b Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Nov 2018 22:01:22 +0100 Subject: [PATCH] Don't run integration tests in forks --- .travis.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8730535d629e..5338c7622e9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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