forked from dwavesystems/dimod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
58 lines (44 loc) · 1.96 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
51
52
53
54
55
56
57
58
environment:
# PyPI login
username: dwtools-ci
password:
secure: ImmjKZE9iYNMYj7qKREpbQ==
CL: /IC:\\Libraries\\boost_1_67_0\
matrix:
# https://www.appveyor.com/docs/build-environment/#python
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python34-x64"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python37-x64"
matrix:
fast_finish: true
cache:
- '%PYTHON%\Lib\site-packages -> requirements.txt'
- '%AppData%\pip-cache'
# cache the .pyd file
- dimod\roof_duality\ -> dimod\roof_duality\_fix_variables.pyx, dimod\roof_duality\src\compressed_matrix.hpp, dimod\roof_duality\src\fix_variables.cpp, dimod\roof_duality\src\fix_variables.hpp, dimod\roof_duality\fix_variables.py, dimod\roof_duality\__init__.py
install:
- "%PYTHON%\\python.exe -m pip install -r requirements.txt --cache-dir %AppData%\\pip-cache"
# for python34-x64
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
build_script:
# appveyor has boost under C:\Libraries\boost_1_67_0 https://www.appveyor.com/docs/build-environment/#boost
- "%PYTHON%\\python.exe setup.py build_ext --inplace --include-dirs \"C:\\Libraries\\boost_1_67_0\""
test_script:
- "%PYTHON%\\python.exe -m unittest discover"
before_deploy:
# build the wheel (only if deploying)
- "%PYTHON%\\python.exe -m pip install wheel twine"
- "if [%APPVEYOR_REPO_TAG%]==[true] %PYTHON%\\python.exe setup.py bdist_wheel"
# set up the pypi credentials
- "echo [pypi] > %USERPROFILE%\\.pypirc"
- "echo username: %username% >> %USERPROFILE%\\.pypirc"
- "echo password: %password% >> %USERPROFILE%\\.pypirc"
deploy_script:
- cmd: "if [%APPVEYOR_REPO_TAG%]==[true] %PYTHON%\\python.exe -m twine upload --skip-existing dist\\*.whl"