Skip to content

Commit 077a498

Browse files
committed
[appveyor.yml] update Appveyor configuration
1 parent 59c1b1c commit 077a498

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

appveyor.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,14 @@
11
environment:
22
matrix:
3-
- JOB: "3.5 64-bit"
4-
PYTHON_HOME: "C:\\Python35-x64"
5-
TOX_PY: py35
6-
7-
- JOB: "3.6 64-bit"
8-
PYTHON_HOME: "C:\\Python36-x64"
3+
- JOB: "3.6 32-bit"
4+
PYTHON_HOME: "C:\\Python36"
95
TOX_PY: py36
106

117
- JOB: "3.7 64-bit"
128
PYTHON_HOME: "C:\\Python37-x64"
139
TOX_PY: py37
1410

15-
- JOB: "3.7 32-bit"
16-
PYTHON_HOME: "C:\\Python37"
17-
TOX_PY: py37
18-
1911
install:
20-
# If there is a newer build queued for the same PR, cancel this one.
21-
# The AppVeyor 'rollout builds' option is supposed to serve the same
22-
# purpose but it is problematic because it tends to cancel builds pushed
23-
# directly to master instead of just PR builds (or the converse).
24-
# credits: JuliaLang developers.
25-
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
26-
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
27-
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
28-
throw "There are newer queued builds for this pull request, failing early." }
29-
3012
# Prepend Python to the PATH of this build
3113
- "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
3214

@@ -35,12 +17,23 @@ install:
3517
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
3618

3719
# upgrade pip and setuptools to avoid out-of-date warnings
38-
- "python -m pip install --disable-pip-version-check --user --upgrade pip setuptools"
20+
- "python -m pip install --disable-pip-version-check --user --upgrade pip setuptools virtualenv"
3921

40-
# install the test dependencies
41-
- "python -m pip install tox"
22+
# install the dependencies to run the tests
23+
- "python -m pip install --upgrade tox pytest"
4224

4325
build: false
4426

45-
test_script:
27+
# The following prevents Travis from running CI on pull requests that come from a
28+
# branch in the same repository. Without this, it will run the same CI for the
29+
# pull request branch _and_ the pull request itself, which makes no sense.
30+
branches:
31+
only:
32+
- master
33+
# We want to build wip/* branches since these are not usually used for PRs
34+
- /^wip\/.*$/
35+
# We want to build version tags as well.
36+
- /^v\d+\.\d+.*$/
37+
38+
test_script:
4639
- "tox -e %TOX_PY%"

0 commit comments

Comments
 (0)