-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.cirrus.yml
173 lines (150 loc) · 4.37 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
docs_task:
skip: $BRANCH =~ '.*\.tmp'
container:
image: python:3-slim
install_script:
- apt update && apt install make
- pip install --upgrade-strategy eager -U -r requirements-docs.txt
- pip install -e .
script:
- make -C docs/ html
lint_task:
skip: $BRANCH =~ '.*\.tmp'
container:
image: python:3-slim
install_script:
- pip install --upgrade-strategy eager -U -r requirements-lint.txt
- pip install -e .
script:
- python3 --version
- pip list
- ./lint.sh
pep517_task:
skip: $BRANCH =~ '.*\.tmp'
container:
image: python:3-slim
install_script:
- pip install --upgrade-strategy eager -U pep517
script:
- python3 -m pep517.check .
upload_task:
skip: $BRANCH =~ '.*\.tmp'
# only_if: $CIRRUS_RELEASE != ""
env:
TWINE_REPOSITORY_URL: "https://test.pypi.org/legacy/"
TWINE_USER: pursuedpybot
TWINE_PASSWORD: "ENCRYPTED[31855ff9a080d4be75462409aa237fd116237b333f28cbfdadf0b3e3a15e2c9d542c4ab26d14323765b7e23072bcd126]"
GITHUB_TOKEN: "ENCRYPTED[e2b8bcc0b43e44cdd1cf0f479785fe68c396819905865001bb482a0d9ac7d1912bd5f15ebf0b9de39f33f63fb79ef207]"
container:
image: python:3-slim
install_script:
- pip install --upgrade-strategy eager -U -r requirements-upload.txt
- apt-get update
- apt-get install -y curl
script:
- ./setup.py sdist bdist_wheel
- ls -Al dist
- python -m tarfile -l dist/*.tar.*
- python -m zipfile -l dist/*.whl
- ./.ci/upload-build.sh
FreeBSD_task:
only_if: $BRANCH == 'staging' || $BRANCH == 'trying'
use_compute_credits: true
freebsd_instance:
image_family: freebsd-13-0
env:
matrix:
- PYTHON: 3.7
- PYTHON: 3.8
- PYTHON: 3.9
- PYTHON: 3.10
install_script:
- PYVER=`echo $PYTHON | tr -d '.'`
- PYPKG=py${PYVER}
- PY=python${PYTHON}
- pkg install -y bash python${PYVER} ${PYPKG}-setuptools
- ${PY} -m ensurepip
- ${PY} -m pip install --upgrade-strategy eager -U -r requirements-ci.txt
- ${PY} -m pip install -e .
script:
- export PY=python${PYTHON}
- ${PY} --version
- ${PY} -m pip list
- ./test.sh
task:
skip: $BRANCH =~ '.*\.tmp'
use_compute_credits: $BRANCH == 'staging' || $BRANCH == 'trying'
env:
matrix:
- IMAGE: python:3.7-slim
- IMAGE: python:3.8-slim
- IMAGE: python:3.9-slim
- IMAGE: python:3.10-slim
- IMAGE: python:3-slim
- IMAGE: python:rc-slim
- IMAGE: pypy:3.7-slim
PYTEST_CPUS: 15
- IMAGE: pypy:3-slim
PYTEST_CPUS: 15
- IMAGE: pypy:3.8-slim
PYTEST_CPUS: 15
name: "Linux $IMAGE"
allow_failures: $IMAGE =~ '.*-rc-.*'
container:
image: $IMAGE
greedy: true
install_script:
- pip install --upgrade-strategy eager -U -r requirements-ci.txt
- pip install -e .
script:
- command -v pypy3 >/dev/null && export PY=pypy3
- ${PY-python3} --version
- pip list
- ./test.sh
macOS_task:
only_if: $BRANCH == 'staging' || $BRANCH == 'trying'
use_compute_credits: true
osx_instance:
image: catalina-xcode
env:
PATH: ${HOME}/.pyenv/shims:${PATH}
matrix:
- PYTHON: 3.7
- PYTHON: 3.8
- PYTHON: 3.9
- PYTHON: 3.10
install_script:
- brew update
- brew install python@${PYTHON}
- export PY=$(brew --prefix)/opt/python@${PYTHON}/bin/python3
- ${PY} -m pip install --user --upgrade-strategy eager -U pip wheel setuptools
- ${PY} -m pip install --user --upgrade-strategy eager -U -r requirements-ci.txt
- ${PY} -m pip install --user .
script:
- export PY=$(brew --prefix)/opt/python@${PYTHON}/bin/python3
- ${PY} --version
- ${PY} -m pip list
- ./test.sh
task:
skip: $BRANCH =~ '.*\.tmp'
use_compute_credits: $BRANCH == 'staging' || $BRANCH == 'trying'
env:
matrix:
- IMAGE: python:3.7-windowsservercore
- IMAGE: python:3.8-windowsservercore
- IMAGE: python:3.9
- IMAGE: python:3.10
- IMAGE: python:3
- IMAGE: python:rc
allow_failures: $IMAGE =~ '.*-rc-.*'
name: "Windows $IMAGE"
windows_container:
os_version: 2019
image: $IMAGE
install_script:
- C:\Python\python.exe -m pip install --upgrade-strategy eager -U -r requirements-ci.txt
- C:\Python\python.exe -m pip install -e .
script:
- C:\Python\python.exe --version
- C:\Python\python.exe -m pip list
- C:\Python\python.exe -m pytest --hypothesis-profile ci -n auto