Merge branch 'appveyor-ci-improvements'
Cancel builds of non-latest PR version on AppVeyor and other minor improvements. See #2085.
This commit is contained in:
commit
2b540ae2f5
2 changed files with 16 additions and 0 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -6,11 +6,13 @@ on:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'CHANGES*'
|
- 'CHANGES*'
|
||||||
- 'Doc/**'
|
- 'Doc/**'
|
||||||
|
- 'appveyor.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: master
|
branches: master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'CHANGES*'
|
- 'CHANGES*'
|
||||||
- 'Doc/**'
|
- 'Doc/**'
|
||||||
|
- 'appveyor.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
14
appveyor.yml
14
appveyor.yml
|
|
@ -2,6 +2,12 @@ platform:
|
||||||
- x86
|
- x86
|
||||||
- x64
|
- x64
|
||||||
|
|
||||||
|
skip_commits:
|
||||||
|
files:
|
||||||
|
- 'CHANGES*'
|
||||||
|
- 'Doc/**'
|
||||||
|
- '.github/**'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
MAKEJOBS: 2
|
MAKEJOBS: 2
|
||||||
|
|
@ -45,6 +51,14 @@ matrix:
|
||||||
- SWIGLANG: python
|
- SWIGLANG: python
|
||||||
OSVARIANT: cygwin
|
OSVARIANT: cygwin
|
||||||
|
|
||||||
|
# Skip stale commits (pull requests only), see https://github.com/appveyor/ci/issues/38#issuecomment-70628826
|
||||||
|
init:
|
||||||
|
- ps: |
|
||||||
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
|
||||||
|
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
|
||||||
|
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
|
||||||
|
throw "There are newer queued builds for this pull request, failing early." }
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- date /T & time /T
|
- date /T & time /T
|
||||||
- ps: >-
|
- ps: >-
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue