Merge pull request #980 from ehuss/appveyor-one-job

Only run 1 job on appveyor when a PR is opened.
This commit is contained in:
Eric Huss 2019-07-15 14:54:55 -07:00 committed by GitHub
commit 4932df2570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ environment:
# Install Rust and Cargo # Install Rust and Cargo
install: install:
# Since rust-lang-libs is currently sharing 1 builder, only run 1 job when a
# PR is opened. Merges to master or tags will run all jobs.
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -gt 0 -and ($env:TARGET -ne "x86_64-pc-windows-msvc" -or $env:RUST_CHANNEL -ne "stable") ) {Exit-AppveyorBuild}
- ps: >- - ps: >-
If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') { If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
$Env:PATH += ';C:\msys64\mingw64\bin' $Env:PATH += ';C:\msys64\mingw64\bin'