forked from common-workflow-language/cwltool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
57 lines (44 loc) · 1.52 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: .{build}-{branch}
cache:
- '%LOCALAPPDATA%\pip\Cache'
environment:
SYSTEMROOT: "C:\\WINDOWS"
matrix:
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
install:
- ps: 'Install-Product node 0.12 x64'
- "set PATH=%PYTHON%\\Scripts;%PATH%"
- "%PYTHON%\\python.exe -m pip install -U pip setuptools^>=20.3 wheel"
- "%PYTHON%\\python.exe -m pip install -U codecov pytest-xdist pytest-cov galaxy-lib -rtest-requirements.txt"
# Note the use of a `^` to escape the `>`
build_script:
- "%PYTHON%\\python.exe -m pip install -rrequirements.txt"
- "%PYTHON%\\python.exe -m pip install -e ."
test_script:
- |
%PYTHON%\\python.exe -m coverage run --parallel-mode -m pytest --strict -p no:cacheprovider --junit-xml=tests.xml
- "%PYTHON%\\python.exe -m coverage combine"
- "%PYTHON%\\python.exe -m coverage report"
- "%PYTHON%\\python.exe -m coverage xml"
- "%PYTHON%\\python.exe -m codecov --file coverage.xml"
on_finish:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($Env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml))
branches:
only:
- master