-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (60 loc) · 1.94 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
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 -U Cython satella snakehouse nose2 coverage
- pip install -r requirements.txt
- python setup.py build_ext --inplace
jobs:
include:
- stage: test
python: "3.5"
script:
- bash tests/test.sh
after_script:
- coverage xml
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
- stage: test
python: "3.8"
script:
- bash tests/test.sh
after_script:
- coverage xml
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
- stage: test
python: "3.9"
script:
- bash tests/test.sh
after_script:
- coverage xml
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
- stage: deploy
python: "3.8"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel twine doctor-wheel auditwheel snakehouse satella
script:
- RELEASE=1 python setup.py bdist_wheel sdist
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- twine upload -u $PYPI_USER -p $PYPI_PWD wheelhouse/*.whl *.gz
- stage: deploy
python: "3.9"
before_script:
- sudo apt-get update
- sudo apt-get install -y patchelf
- pip install wheel twine doctor-wheel auditwheel snakehouse satella
script:
- RELEASE=1 python setup.py bdist_wheel
- cd dist
- doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl
- twine upload -u $PYPI_USER -p $PYPI_PWD wheelhouse/*.whl