forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (48 loc) · 1.68 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
58
version: "{build}"
clone_depth: 100
environment:
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
# The list here is complete (excluding Python 2.6, which
# isn't covered by this document) at the time of writing.
- PYTHON: "C:\\Python36"
# - PYTHON: "C:\\Python27"
# - PYTHON: "C:\\Python34"
# - PYTHON: "C:\\Python35"
# - PYTHON: "C:\\Python35-x64"
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# We need wheel installed to build wheels
- "python.exe -m pip install wheel"
- "python.exe -m pip install unittest-xml-reporting"
- "python.exe -m pip install -r requirements-optional.txt"
- "python.exe -m pip install -r ci/requirements-travis.txt"
build: off
test_script:
- "python.exe manage.py collectstatic --settings weblate.settings_test --noinput"
- "python.exe manage.py check --settings weblate.settings_test"
- ps: >-
$failure = 0;
try {
coverage run ./manage.py test --settings weblate.settings_test -v2
$failure = $lastExitCode;
} catch {
$failure = 1;
} finally {
# Upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient';
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit.xml));
}
if ($failure -ne 0) {
# Propagate error code from testsuite
exit $failure;
}
after_test:
- "coverage combine"
- "coverage xml"
- "codecov"
- "python.exe setup.py bdist_wheel"
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*