2019-11-23 12:51:11 +01:00
|
|
|
environment:
|
|
|
|
|
matrix:
|
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
|
|
|
|
|
APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
|
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
|
APPVEYOR_JOB_NAME: "python37-x64-vs2015"
|
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
|
|
|
|
|
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
|
2017-08-14 23:19:39 +01:00
|
|
|
|
2019-11-23 12:51:11 +01:00
|
|
|
stack: python 3.7
|
|
|
|
|
|
|
|
|
|
build: off
|
|
|
|
|
|
|
|
|
|
init:
|
|
|
|
|
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
|
2020-04-08 13:18:15 +02:00
|
|
|
- ps: |
|
|
|
|
|
$BRANCH = if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) { $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH } else { $env:APPVEYOR_REPO_BRANCH }
|
2020-04-08 13:30:19 +02:00
|
|
|
if (-not ($BRANCH -eq 'master' -or $BRANCH.ToLower().StartsWith('appveyor-'))) {
|
2020-10-03 21:40:42 +02:00
|
|
|
$env:PYTEST_ADDOPTS='-k "unit_test or test_0_basic" --suppress-no-test-exit-code'
|
2020-04-08 13:18:15 +02:00
|
|
|
}
|
2019-11-23 12:51:11 +01:00
|
|
|
|
2020-04-08 13:30:19 +02:00
|
|
|
install: python -m pip install -r requirements-dev.txt pytest-custom-exit-code
|
2019-11-23 12:51:11 +01:00
|
|
|
|
|
|
|
|
# the '-u' flag is required so the output is in the correct order.
|
|
|
|
|
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
|
|
|
|
|
test_script: python -u ./bin/run_tests.py
|
2020-04-07 11:49:10 +01:00
|
|
|
|
|
|
|
|
branches:
|
|
|
|
|
only:
|
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
skip_commits:
|
|
|
|
|
files:
|
|
|
|
|
- docs/*
|