forked from biesnecker/hachiko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
142 lines (110 loc) · 3.36 KB
/
.cirrus.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# default container
container:
image: python:3.8
linux_task:
auto_cancellation: true
env:
matrix:
PY_VER: "3.8"
PY_VER: "3.7"
PY_VER: "3.6"
name: linux ${PY_VER}
container:
image: gcc:latest
env:
PATH: $HOME/conda/bin:$PATH
DISPLAY: ":99"
conda_script:
- curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > install.sh
- bash install.sh -b -p $HOME/conda
# https://github.com/napari/napari/pull/594#issuecomment-542475164
- conda install --yes -c conda-forge setuptools
# conda 4.8.2 is breaking python 3.6 builds at the moment
- conda install -yn base conda=4.8.1
- conda install -y python=$PY_VER
- rm install.sh
install_script:
- pip install -e .
- pip install pytest
check_script:
- conda list
- python -c "import hachiko; print(hachiko.__version__)"
test_script: pytest -v
mac_task:
auto_cancellation: true
env:
matrix:
PY_VER: "3.8"
PY_VER: "3.7"
PY_VER: "3.6"
name: macos ${PY_VER}
osx_instance:
image: catalina-xcode
env:
PATH: $HOME/conda/bin:$PATH
conda_script:
- curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > install.sh
- bash install.sh -b -p $HOME/conda
# https://github.com/napari/napari/pull/594#issuecomment-542475164
- conda install --yes -c conda-forge setuptools
# conda 4.8.2 is breaking python 3.6 builds at the moment
- conda install -yn base conda=4.8.1
- conda install -y python=$PY_VER
- rm install.sh
install_script:
- pip install -e .
- pip install pytest
check_script:
- conda list
- python -c "import hachiko; print(hachiko.__version__)"
test_script: pytest -v
win_task:
auto_cancellation: true
env:
matrix:
PY_VER: "3.8"
PY_VER: "3.7"
PY_VER: "3.6"
name: windows ${PY_VER}
windows_container:
image: cirrusci/windowsservercore:cmake
os_version: 2019
env:
ANACONDA_LOCATION: $USERPROFILE\anaconda
PATH: $ANACONDA_LOCATION\Scripts;$ANACONDA_LOCATION;$PATH
# must set this to its default since it doesn't work in env variables
# see https://github.com/cirruslabs/cirrus-ci-docs/issues/423
CIRRUS_WORKING_DIR: C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build
PYTHON_ARCH: 64
system_script:
# install OpenSSL
- choco install -y openssl.light
conda_script:
- choco install -y miniconda3 --params="'/D:%ANACONDA_LOCATION%'"
# https://github.com/napari/napari/pull/594#issuecomment-542475164
- conda install --yes -c conda-forge setuptools
- conda install -yn base conda=4.8.1
- conda install -y python=%PY_VER%
- pip install setuptools-scm
install_script:
- pip install -e .
- pip install pytest
check_script:
- conda list
- python -c "import hachiko; print(hachiko.__version__)"
test_script: pytest -v
python35_task:
# Python 3.5 and conda are not working well together:
# https://github.com/conda/conda/issues/9640
# so we set up a separate task with the default Python 3.5 Cirrus container.
auto_cancellation: true
name: Python 3.5 (default Cirrus CI container)
container:
image: python:3.5
install_script:
- pip install -e .
- pip install pytest
check_script:
- pip freeze
- python -c "import hachiko; print(hachiko.__version__)"
test_script: pytest -v