@@ -22,13 +22,6 @@ environment:
22
22
CONDA_DEPENDENCIES : " qt=5.* pyqt=5.*"
23
23
- PYTHON_VERSION : " 2.7"
24
24
CONDA_DEPENDENCIES : " qt=5.* pyqt=5.*"
25
- # PySide2
26
- # - PYTHON_VERSION: "3.5"
27
- # CONDA_DEPENDENCIES: "qt=5.* pyside2"
28
- # - PYTHON_VERSION: "3.4"
29
- # CONDA_DEPENDENCIES: "qt=5.* pyside2"
30
- # - PYTHON_VERSION: "2.7"
31
- # CONDA_DEPENDENCIES: "qt=5.* pyside2"
32
25
# PyQt4
33
26
- PYTHON_VERSION : " 3.5"
34
27
CONDA_DEPENDENCIES : " qt=4.* pyqt=4.*"
@@ -44,6 +37,15 @@ platform:
44
37
-x64
45
38
46
39
install :
40
+ # If there is a newer build queued for the same PR, cancel this one.
41
+ # The AppVeyor 'rollout builds' option is supposed to serve the same
42
+ # purpose but it is problematic because it tends to cancel builds pushed
43
+ # directly to master instead of just PR builds (or the converse).
44
+ # credits: JuliaLang developers.
45
+ - ps : if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
46
+ https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
47
+ Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
48
+ throw "There are newer queued builds for this pull request, failing early." }
47
49
- " git clone git://github.com/astropy/ci-helpers.git"
48
50
- " powershell ci-helpers/appveyor/install-miniconda.ps1"
49
51
- " SET PATH=%PYTHON%;%PYTHON%\\ Scripts;%PATH%"
@@ -55,5 +57,4 @@ install:
55
57
build : false
56
58
57
59
test_script :
58
- - " ciocheck qtawesome"
59
60
- " %CMD_IN_ENV% python example.py"
0 commit comments