-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
187 lines (167 loc) · 4.03 KB
/
.gitlab-ci.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
stages:
- test
- dist
- deploy
- release
variables:
GIT_DEPTH: 100
GIT_SUBMODULE_STRATEGY: recursive
# --- Stage Templates ----------------------------------------------------------
.test: &test
stage: test
cache:
key: ${CI_COMMIT_REF_SLUG}-${CI_JOB_STAGE}
paths:
- build
before_script:
- $python -m pip install -U pip
- $python -m pip install -U -r .github/workflows/requirements.txt
script:
- $python setup.py build_clib --debug
- $python setup.py build_ext --debug --inplace
- $python -m coverage run -m unittest discover -v
.test-cpython: &test-cpython
image: quay.io/pypa/manylinux2010_x86_64
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
after_script:
- $python -m coverage xml
- $python -m coverage report
- $python -m codecov
<<: *test
.test-pypy: &test-pypy
image: pypywheels/manylinux2010-pypy_x86_64:2020-12-11-f1e0e80
<<: *test
.bdist: &bdist
stage: dist
cache:
key: ${CI_COMMIT_REF_SLUG}-${CI_JOB_STAGE}
paths:
- build
artifacts:
paths:
- dist/*.whl
only:
- tags
before_script:
- $python -m pip install -U -r .github/workflows/requirements.txt
script:
- $python setup.py build_clib
- $python setup.py build_ext --inplace
- $python -m unittest discover -v
- $python setup.py bdist_wheel
.bdist-cpython: &bdist-cpython
image: quay.io/pypa/manylinux2010_x86_64
<<: *bdist
.bdist-pypy: &bdist-pypy
image: pypywheels/manylinux2010-pypy_x86_64:2020-12-11-f1e0e80
<<: *bdist
# --- Stages -------------------------------------------------------------------
test:python3.6:
variables:
python: /opt/python/cp36-cp36m/bin/python
<<: *test-cpython
test:python3.7:
variables:
python: /opt/python/cp37-cp37m/bin/python
<<: *test-cpython
test:python3.8:
variables:
python: /opt/python/cp38-cp38/bin/python
<<: *test-cpython
test:python3.9:
variables:
python: /opt/python/cp39-cp39/bin/python
<<: *test-cpython
test:python3.10:
variables:
python: /opt/python/cp310-cp310/bin/python
<<: *test-cpython
test:pypy3.6:
variables:
python: /opt/pypy/pypy3.6-7.3.3/bin/python
<<: *test-pypy
test:pypy3.7:
variables:
python: /opt/pypy/pypy3.7-7.3.3/bin/python
<<: *test-pypy
# sdist:
# variables:
# python: /opt/python/cp39-cp39/bin/python
# image: quay.io/pypa/manylinux2010_x86_64
# stage: dist
# only:
# - tags
# artifacts:
# paths:
# - dist/*.tar.gz
# before_script:
# - $python -m pip install -U -r .github/workflows/requirements.txt
# script:
# - $python setup.py sdist
# - $python -m pip install pyhmmer dist/*.tar.gz
#
# bdist:python3.6:
# variables:
# python: /opt/python/cp36-cp36m/bin/python
# <<: *bdist-cpython
#
# bdist:python3.7:
# variables:
# python: /opt/python/cp37-cp37m/bin/python
# <<: *bdist-cpython
#
# bdist:python3.8:
# variables:
# python: /opt/python/cp38-cp38/bin/python
# <<: *bdist-cpython
#
# bdist:python3.9:
# variables:
# python: /opt/python/cp39-cp39/bin/python
# <<: *bdist-cpython
#
# bdist:pypy3.6:
# variables:
# python: /opt/pypy/pypy3.6-7.3.3/bin/python
# <<: *bdist-pypy
#
# bdist:pypy3.7:
# variables:
# python: /opt/pypy/pypy3.7-7.3.3/bin/python
# <<: *bdist-pypy
#
#
# twine:
# variables:
# python: /opt/python/cp39-cp39/bin/python
# image: quay.io/pypa/manylinux2010_x86_64
# stage: deploy
# only:
# - tags
# dependencies:
# - sdist
# - bdist:python3.6
# - bdist:python3.7
# - bdist:python3.8
# - bdist:python3.9
# - bdist:pypy3.6
# - bdist:pypy3.7
# before_script:
# - $python -m pip install -U auditwheel twine
# script:
# - for whl in dist/*.whl; do auditwheel repair "$whl" -w dist && rm "$whl"; done
# - $python -m twine upload dist/*
#
# release:
# image: ruby
# stage: release
# only:
# - tags
# before_script:
# - gem install chandler
# script:
# - chandler push --github="althonos/pyhmmer" --changelog="CHANGELOG.md"