diff options
author | Vadim Zeitlin <vz-swig@zeitlins.org> | 2021-10-14 00:24:38 +0200 |
---|---|---|
committer | Vadim Zeitlin <vz-swig@zeitlins.org> | 2021-10-14 00:26:54 +0200 |
commit | 2b540ae2f5d83b5083538a574ddfdf129db1521f (patch) | |
tree | cb8ecf753066e79cb7f081d65885a6d1e73be180 /appveyor.yml | |
parent | 8a0ec051db5dd638e55d0a636d31e8a70dabcdd1 (diff) | |
parent | 1f33118077bb768c77e5a8d138d49dad274d240f (diff) | |
download | swig-2b540ae2f5d83b5083538a574ddfdf129db1521f.tar.gz |
Merge branch 'appveyor-ci-improvements'
Cancel builds of non-latest PR version on AppVeyor and other minor
improvements.
See #2085.
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml index fad8f0bc0..8538bfef1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,12 @@ platform: - x86 - x64 +skip_commits: + files: + - 'CHANGES*' + - 'Doc/**' + - '.github/**' + environment: global: MAKEJOBS: 2 @@ -45,6 +51,14 @@ matrix: - SWIGLANG: python 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: - date /T & time /T - ps: >- |