1
1
environment :
2
2
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"
9
5
TOX_PY : py36
10
6
11
7
- JOB : " 3.7 64-bit"
12
8
PYTHON_HOME : " C:\\ Python37-x64"
13
9
TOX_PY : py37
14
10
15
- - JOB : " 3.7 32-bit"
16
- PYTHON_HOME : " C:\\ Python37"
17
- TOX_PY : py37
18
-
19
11
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
-
30
12
# Prepend Python to the PATH of this build
31
13
- " SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\ Scripts;%PATH%"
32
14
@@ -35,12 +17,23 @@ install:
35
17
- " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
36
18
37
19
# 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 "
39
21
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 "
42
24
43
25
build : false
44
26
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 :
46
39
- " tox -e %TOX_PY%"
0 commit comments