/
appveyor.yml
68 lines (55 loc) · 1.99 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
59
60
61
62
63
64
65
66
67
68
environment:
global:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "latest"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
CONDA_DEPENDENCIES: "sphinx pillow coveralls coverage pytest"
CONDA_CHANNELS: "conda-forge"
CONDA_CHANNEL_PRIORITY: "True"
TWINE_USERNAME: "dhoese"
TWINE_PASSWORD:
secure: zws6RrJGZ5XULrqXQDF/Cw==
matrix:
- CIBW_TEST_REQUIRES: "numpy pillow pytest"
CIBW_TEST_COMMAND: "python {project}\\selftest.py"
CIBUILDWHEEL: 1
- PYTHON: "C:\\Python27_32"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
NUMPY_VERSION: "stable"
CIBUILDWHEEL: 0
- PYTHON: "C:\\Python27_64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
NUMPY_VERSION: "stable"
CIBUILDWHEEL: 0
- PYTHON: "C:\\Python36_32"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "32"
NUMPY_VERSION: "stable"
CIBUILDWHEEL: 0
- PYTHON: "C:\\Python36_64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
NUMPY_VERSION: "stable"
CIBUILDWHEEL: 0
install:
- if [%CIBUILDWHEEL%]==[0] git clone --depth 1 git://github.com/astropy/ci-helpers.git
- if [%CIBUILDWHEEL%]==[0] powershell ci-helpers/appveyor/install-miniconda.ps1
- if [%CIBUILDWHEEL%]==[0] SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- if [%CIBUILDWHEEL%]==[0] call activate test
build: false # Not a C# project, build stuff at the test step instead.
build_script:
- if [%CIBUILDWHEEL%]==[1] pip install cibuildwheel
- if [%CIBUILDWHEEL%]==[1] cibuildwheel --output-dir dist
- if [%CIBUILDWHEEL%]==[1] powershell ci/appveyor-twine.ps1
test_script:
- if [%CIBUILDWHEEL%]==[0] conda info --envs
- if [%CIBUILDWHEEL%]==[0] %CMD_IN_ENV% pip install -e .
- if [%CIBUILDWHEEL%]==[0] %CMD_IN_ENV% python selftest.py
after_test:
- if [%CIBUILDWHEEL%]==[0] %CMD_IN_ENV% python setup.py bdist_wheel bdist_wininst
- ps: "ls dist"
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*