Merge pull request #313 from YannickJadoul/less-appveyor
Only run unit tests and 01_basic on AppVeyor
This commit is contained in:
+10
-1
@@ -7,14 +7,23 @@ environment:
|
|||||||
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
|
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
|
||||||
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
|
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
|
||||||
|
|
||||||
stack: python 3.7
|
stack: python 3.7
|
||||||
|
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
init:
|
init:
|
||||||
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
|
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
|
||||||
|
- ps: |
|
||||||
|
$BRANCH = if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) { $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH } else { $env:APPVEYOR_REPO_BRANCH }
|
||||||
|
if (-not ($BRANCH -eq 'master' -or $BRANCH.ToLower().StartsWith('appveyor-'))) {
|
||||||
|
$env:PYTEST_ADDOPTS='-k "unit_test or _basic" --suppress-no-test-exit-code'
|
||||||
|
}
|
||||||
|
|
||||||
install: python -m pip install --retries 3 -r requirements-dev.txt
|
install: python -m pip install -r requirements-dev.txt pytest-custom-exit-code
|
||||||
|
|
||||||
# the '-u' flag is required so the output is in the correct order.
|
# the '-u' flag is required so the output is in the correct order.
|
||||||
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
|
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
|
||||||
|
|||||||
Reference in New Issue
Block a user