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" stack: python 3.7 build: off init: - 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 test_0_basic" --suppress-no-test-exit-code' } install: python -m pip install -e ".[dev]" pytest-custom-exit-code # the '-u' flag is required so the output is in the correct order. # See https://github.com/pypa/cibuildwheel/pull/24 for more info. test_script: python -u ./bin/run_tests.py branches: only: - master skip_commits: files: - docs/*