-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.cirrus.yml
132 lines (101 loc) · 2.86 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
# Reference:
# - https://cirrus-ci.org/guide/writing-tasks/
# - https://cirrus-ci.org/guide/linux/
# - https://cirrus-ci.org/guide/macOS/
# - https://cirrus-ci.org/guide/windows/
# - https://hub.docker.com/_/gcc/
# - https://hub.docker.com/_/python/
#
# Global defaults.
#
container:
image: python:3.9
env:
# Maximum cache period (in weeks) before forcing a new cache upload.
CACHE_PERIOD: "2"
#
# Linux
#
linux_task:
auto_cancellation: true
matrix:
env:
PY_VER: "3.9"
name: "Linux: py${PY_VER}"
container:
image: gcc:latest
env:
PATH: $HOME/miniconda3/bin/:$PATH
conda_script:
- wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
- bash ~/miniconda.sh -b -p $HOME/miniconda3
- conda install --yes --file requirements.txt python=$PY_VER
- conda list
install_script:
- pip install -e .
check_script:
- conda list
- python -c "import triangle; print(triangle.__version__)"
test_script:
- python tests/test_simple.py
- python tests/test_triangle.py
- python tests/test_regions.py
#
# OSX
#
osx_task:
auto_cancellation: true
matrix:
env:
PY_VER: "3.9"
name: "OSX: py${PY_VER}"
macos_instance:
image: big-sur-xcode
env:
PATH: $HOME/miniconda3/bin/:$PATH
conda_script:
- wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O ~/miniconda.sh
- bash ~/miniconda.sh -b -p $HOME/miniconda3
- conda install --yes --file requirements.txt python=$PY_VER
- conda list
install_script:
- pip install -e .
check_script:
- conda list
- python -c "import triangle; print(triangle.__version__)"
test_script:
- python tests/test_simple.py
- python tests/test_triangle.py
- python tests/test_regions.py
#
# Windows
#
win_task:
auto_cancellation: true
env:
matrix:
PY_VER: "3.9"
name: windows ${PY_VER}
windows_container:
image: cirrusci/windowsservercore:cmake
os_version: 2019
env:
ANACONDA_LOCATION: $USERPROFILE\anaconda
PATH: $ANACONDA_LOCATION;$ANACONDA_LOCATION\Scripts;$ANACONDA_LOCATION\Library\bin;$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 --file requirements.txt python=%PY_VER%
install_script:
- pip install -e .
test_script:
- python tests/test_simple.py
- python tests/test_triangle.py
- python tests/test_regions.py