-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
173 lines (171 loc) · 5.11 KB
/
.travis.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
language: python
stages:
- name: test
- name: deploy
if: tag is present
cache: pip
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- pip install -r requirements.txt
- pip install pytest coverage pytest-cov
after_script:
- coverage xml
- coverage report
- ./cc-test-reporter after-build -t coverage.py --exit-code ${TRAVIS_TEST_RESULT}
jobs:
include:
- stage: test
python: "pypy3.5"
before_script:
- pypy3 -m pip install -r requirements.txt
- pypy3 -m pip install pytest
script:
- pypy3 setup.py install
- pytest
after_script:
- echo "Do nothing"
- stage: test
python: "3.8"
arch: "arm64"
before_script:
- pip install -r requirements.txt
- pip install pytest coverage pytest-cov
after_script:
- coverage xml
- coverage report
script:
- DEBUG=1 python setup.py install
- pytest --cov=./ --cov-report=xml
- stage: test
python: "3.8"
script:
- DEBUG=1 python setup.py install
- pytest --cov=./ --cov-report=xml
- stage: test
python: "3.5"
script:
- DEBUG=1 python setup.py install
- pytest --cov=./ --cov-report=xml
- stage: test
python: "3.6"
script:
- DEBUG=1 python setup.py install
- pytest --cov=./ --cov-report=xml
- stage: test
python: "3.7"
script:
- DEBUG=1 python setup.py install
- pytest --cov=./ --cov-report=xml
- stage: test
python: "3.9"
script:
- DEBUG=1 python setup.py install
- pytest --cov=./ --cov-report=xml
- stage: deploy
python: "3.8"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel auditwheel twine doctor-wheel cython
script:
- python setup.py bdist_wheel
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- cd wheelhouse
- twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
after_script:
- echo "Done"
- stage: deploy
python: "3.8"
arch: "arm64"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel auditwheel twine doctor-wheel cython
script:
- python setup.py bdist_wheel
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_aarch64 *.whl
- cd wheelhouse
- twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
after_script:
- echo "Done"
- stage: deploy
python: "3.9"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel auditwheel twine doctor-wheel cython
script:
- python setup.py bdist_wheel
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- cd wheelhouse
- twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
after_script:
- echo "Done"
- stage: deploy
python: "3.7"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel auditwheel twine doctor-wheel cython
script:
- python setup.py bdist_wheel
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- cd wheelhouse
- twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
after_script:
- echo "Done"
- stage: deploy
python: "3.6"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel auditwheel twine doctor-wheel cython
script:
- python setup.py bdist_wheel sdist
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- cd wheelhouse
- twine upload -u $PYPI_USER -p $PYPI_PWD *.whl ../*.gz
after_script:
- echo "Done"
- stage: deploy
python: "3.5"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel auditwheel twine doctor-wheel cython
script:
- python setup.py bdist_wheel
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- cd wheelhouse
- twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
after_script:
- echo "Done"
- stage: deploy
python: "pypy3.5"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pypy3 -m pip install -U wheel auditwheel twine doctor-wheel cython
script:
- pypy3 setup.py bdist_wheel
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- cd wheelhouse
- twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
after_script:
- echo "Done"