forked from pyfarm/pyfarm-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
41 lines (32 loc) · 1.3 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
environment:
global:
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
WITH_COMPILER: "cmd /E:ON /V:ON /C C:\\project\\run_with_cmd.cmd"
matrix:
# Preinstalled Python versions
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
build: false # Not a C# project, build stuff at the test step instead.
clone_folder: c:\\project
install:
# First, download and install some files which help with the
# build/compile process
- ps: Invoke-WebRequest https://raw.githubusercontent.com/pypa/python-packaging-user-guide/master/source/code/run_with_compiler.cmd -OutFile C:\\project\\run_with_cmd.cmd
- ps: cd C:\\project
- "%WITH_COMPILER% %PYTHON%\\Scripts\\pip.exe install wheel mock coverage"
- "%WITH_COMPILER% %PYTHON%\\Scripts\\pip.exe install ."
test_script:
- ps: cd C:\\project
# Twisted's trial does not build entrypoints on Windows so we have
# to call it directly.
- "%PYTHON%\\Scripts\\coverage.exe run %PYTHON%\\Scripts\\trial.py tests"
after_test:
- "%WITH_COMPILER% %PYTHON%\\python.exe setup.py bdist_wheel"
- "%PYTHON%\\Scripts\\coverage.exe report"
artifacts:
- path: dist\*