Skip to content

Commit c9e6c11

Browse files
committed
[tl-test] add CI, appveyor
1 parent 76ab75a commit c9e6c11

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

appveyor.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
build: off
2+
branches:
3+
only:
4+
- master
5+
environment:
6+
global:
7+
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
8+
# /E:ON and /V:ON options are not enabled in the batch script intepreter
9+
# See: http://stackoverflow.com/a/13751649/163740
10+
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
11+
12+
matrix:
13+
- JOB: "2.7 32-bit"
14+
TOXENV: "py27"
15+
PYTHON: "C:\\Python27.10"
16+
PYTHON_VERSION: "2.7.10"
17+
PYTHON_ARCH: "32"
18+
- JOB: "2.7 64-bit"
19+
TOXENV: "py27"
20+
PYTHON: "C:\\Python27.10-x64"
21+
PYTHON_VERSION: "2.7.10"
22+
PYTHON_ARCH: "64"
23+
24+
- JOB: "3.4 64-bit"
25+
TOXENV: "py34"
26+
PYTHON: "C:\\Python34-x64"
27+
PYTHON_VERSION: "3.4"
28+
PYTHON_ARCH: "64"
29+
30+
- JOB: "3.5 64-bit"
31+
TOXENV: "py35"
32+
PYTHON: "C:\\Python35-x64"
33+
PYTHON_VERSION: "3.5.0"
34+
PYTHON_ARCH: "64"
35+
36+
- JOB: "3.6 64-bit"
37+
TOXENV: "py36"
38+
PYTHON: "C:\\Python36"
39+
PYTHON_VERSION: "3.6.3"
40+
PYTHON_ARCH: "64"
41+
42+
install:
43+
# Prepend newly installed Python to the PATH of this build (this cannot be
44+
# done from inside the powershell script as it would require to restart
45+
# the parent CMD process).
46+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
47+
# Check that we have the expected version and architecture for Python
48+
- "python --version"
49+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
50+
# Upgrade to the latest version of pip to avoid it displaying warnings
51+
# about it being out of date.
52+
- "python -m pip install wheel"
53+
- "python -m pip install --pre -U tox"
54+
- "pip install qautils"
55+
- "python setup.py clean"
56+
- "python setup.py build"
57+
58+
test_script:
59+
- "tox -e %TOXENV%,flake8"
60+
61+
after_test:
62+
- "python setup.py sdist"
63+
64+
artifacts:
65+
- path: "dist\\*"

0 commit comments

Comments
 (0)