environment:
global:
RUST_BACKTRACE: 1
TARGET: x86_64-pc-windows-msvc
matrix:
- PYTHON: C:\Python35-x64
TAG_SCENARIO: false
- PYTHON: C:\Python36-x64
TAG_SCENARIO: false
- PYTHON: C:\Python37-x64
TAG_SCENARIO: false
- WHEEL: 1
CIBW_BEFORE_BUILD: ps .\tools\setup.ps1
CIBW_SKIP: cp27-* cp34-* *-win32
TWINE_USERNAME: retworkx-ci
CIBW_TEST_COMMAND: python -m unittest discover {project}/tests
TAG_SCENARIO: true
for:
-
matrix:
only:
- TAG_SCENARIO: false
skip_tags: true
-
matrix:
only:
- TAG_SCENARIO: true
skip_non_tags: true
build: false
deploy: false
skip_branch_with_pr: true
build_script:
- if defined WHEEL (pip install cibuildwheel==0.10.1)
- if defined WHEEL (pip install -U twine)
- if defined WHEEL (cibuildwheel --output-dir wheelhouse)
- if defined WHEEL (twine upload wheelhouse\*)
artifacts:
- path: "wheelhouse\\*.whl"
name: Wheels
install:
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- ps: .\tools\setup.ps1
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
- rustc -V
- cargo -V
- pip.exe install -U setuptools-rust
test_script:
- if not defined WHEEL (pip.exe install .)
- if not defined WHEEL (cd tests && python -m unittest discover .)