forked from dwavesystems/qbsolv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
50 lines (40 loc) · 1.48 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
environment:
# PyPI login
TWINE_USERNAME: dwtools
TWINE_PASSWORD:
secure: 9/YAQhmz9Kb1ZeXzhBYeQA==
matrix:
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python38-x64"
- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python39-x64"
install:
# required to link py35 (x86 and x64)
- set PATH=%PATH%;C:\Program Files (x86)\Windows Kits\8.1\bin\x86
# Check that we have the expected version and architecture for Python
- "%PYTHON%\\python.exe --version"
- "%PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
# install dependencies
- "%PYTHON%\\python.exe -m pip install -r requirements.txt -r tests\\requirements.txt"
- "%PYTHON%\\python.exe -m pip install wheel twine"
build_script:
# build the compiled extension and install qbsolv
- "%PYTHON%\\python.exe setup.py build_ext --inplace"
- "%PYTHON%\\python.exe -m pip install ."
test_script:
- "%PYTHON%\\python.exe -m unittest discover"
after_test:
# If tests are successful, create binary wheels
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- ps: "ls dist"
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: dist\*
deploy_script:
- cmd: "if [%APPVEYOR_REPO_TAG%]==[true] if NOT [%CPPDEBUG%]==[1] %PYTHON%\\Scripts\\twine upload --skip-existing dist\\*.whl"