mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-05 00:31:45 +08:00
The 1.3.13 does not come with binaries, 1.3.12 does. Signed-off-by: Michal Čihař <michal@cihar.com>
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
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"
|
|
# Use last binary builds, see https://github.com/PyMySQL/mysqlclient-python/issues/262
|
|
- "python.exe -m pip install mysqlclient==1.3.12"
|
|
- "python.exe -m pip install -r requirements-optional.txt"
|
|
- "python.exe -m pip install -r ci/requirements-travis.txt"
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
- "SET DJANGO_SETTINGS_MODULE=weblate.settings_test"
|
|
- "python.exe manage.py collectstatic --noinput"
|
|
- "python.exe manage.py check"
|
|
- ps: >-
|
|
$failure = 0;
|
|
try {
|
|
coverage run ./manage.py 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\*
|