Skip to content

Commit feb2209

Browse files
committed
Auto merge of #6048 - ehuss:no-master-ci, r=alexcrichton
Disable master in CI. There's no need to build and test the exact same commit twice between bors's auto branch and master. Hopefully this will help reduce the bors timeouts due to waiting on appveyor.
2 parents 2c86b7f + 75494c3 commit feb2209

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ matrix:
1818
include:
1919
- env: TARGET=x86_64-unknown-linux-gnu
2020
ALT=i686-unknown-linux-gnu
21+
if: branch != master OR type = pull_request
2122
- env: TARGET=x86_64-apple-darwin
2223
ALT=i686-apple-darwin
2324
os: osx
25+
if: branch != master OR type = pull_request
2426

2527
- env: TARGET=x86_64-unknown-linux-gnu
2628
ALT=i686-unknown-linux-gnu
2729
rust: beta
30+
if: branch != master OR type = pull_request
2831

2932
# Minimum Rust supported channel. We enable these to make sure we
3033
# continue to work on the advertised minimum Rust version.
@@ -38,6 +41,7 @@ matrix:
3841
- cargo +nightly generate-lockfile -Z minimal-versions
3942
- cargo -V
4043
- cargo test
44+
if: branch != master OR type = pull_request
4145

4246
- env: TARGET=x86_64-unknown-linux-gnu
4347
ALT=i686-unknown-linux-gnu
@@ -48,6 +52,7 @@ matrix:
4852
- cargo test
4953
- cargo doc --no-deps
5054
- (cd src/doc && mdbook build --dest-dir ../../target/doc)
55+
if: branch != master OR type = pull_request
5156

5257
exclude:
5358
- rust: stable

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ environment:
1010
CFG_DISABLE_CROSS_TESTS: 1
1111

1212
install:
13+
- if NOT defined APPVEYOR_PULL_REQUEST_NUMBER if "%APPVEYOR_REPO_BRANCH%" == "master" appveyor exit
1314
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
1415
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
1516
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin

0 commit comments

Comments
 (0)