This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
113 lines (108 loc) · 4.45 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
notifications:
email: false
env:
global:
- secure: "C5o5hO1RDdoJCOR5h7hAdaeTt7ygQhQ7XrbFaYhicw7oOE0ezM8Qhd/t90I4exBu9r+FrqRZd6zgyDwknlMVzFGbRLg4DNNx3RHszHPHO1nZw4sTtOVC93ygsFDpQnzX81cYLPUb2JnIUz1WNeUYt8BBOGPgZGWV9kplksYtWEcYCrT681cB3DaJ0/SKfhYobTJU/D6wkRF5UxtpyDPS/1N4KN3rNf+BRR/j1X2IDEnDoCnVJxwTVTUK8GzcHd5EFLexGTDFb2x6qjk5cYPl21ic52KSw1u1pKT0nBzCBvHNBTRbdHq8S6qT8AH4MU1tKD6Clj+0Sa1AMokKDo9RmjIwKYIcgWliIEWpl+C72WJJ7P9vC8uAfQlRY/gm5ST3m4yFLDTZrvUCOBPJgaPwueCmzOl0Hw0cmh41bBWYXdJuxREfZgNt2h6xzP8JbDs+tBhjig1BUAWix7lZ6Phuk60TX2iSNYEqUZFjct/tqjJiGXP9F1OrK6Nja5okIuA6k138T8OlUfJ7brnMraHUmH6eVx2r600G1oqnjqEJRc7Kuy2o6lTfdoBdMJYCwT2sEd1UdaO2/NJasCdktv+yCFjsxFCg9lGZHPDG+bW9KMl++hqePJaOhynRMHJ8WleSxVjm2UF3rZCEp1U0tmCyspigmqdfWL34YbbZrzQuuLs="
- CIBW_BUILD="cp38-* cp39-*"
- CIBW_TEST_REQUIRES=pytest
- CIBW_TEST_COMMAND="pytest {project}/tests"
- TWINE_USERNAME=__token__
- secure: "X3l7EJggx639ZKERCi4eYbr8Gl6DqKEWSlovnSqERCa+JQycGnovRmLNZvT1Rol4N+1blJHBcPPLr9HDqCQxLIMMyIKe9xE+MT3sKAw0OI01tfNULm+YcAPFja0giXZtp+7952wcbEokOF6TBR7gv/5AB3rvxLGnaSLW9LlR7rNyi1vPgFeh6KNjTrT8Lpsp8m9tbCWPzXL7O4PfLJORc1YrQD5Y6XR0U878jjLPxSOOlIw7Mwup6BKoXpZkWb3k3vKideckC8M9KArTr4vLJCQmFmRLGBg8mkYKmvoUoeQuwfqaBonyM+U1+l1I+SxnHIVe/rLXusuOdElKig3oFDNGTuA8gSHg1peuV5S3aGsshdmwFyhUdEdMJqQI00ZfuHmuYhc63L++h7iecxI5Dc9mL4T6pHZs11ptCUUpaRTLsxGg0HKMFvcRxuqG/3ZaFxJDknAJc6qzm2oydd3F8I3TAEIIlwkL5BrfTuDncHZH1YPo7Vkbpwsq4wBVXbQlTmEOuRQpRuygm2J+mwGGSEQfOh0n6H2YEXFl0yVBDEdbosJKFAO+vy1gwdn1JpQWxluil1Bcfbi/DE/3GFkn33XGg+l9XW7o1m9S3lIU6B9h8Oanx4VbXJn5mJmQEPHNm/xCquO5a4lxGz9udiizubn7yba6KBzilWJtEyBRg2c="
if: type != push OR branch = master OR branch =~ /\d+\.\d+(\.\d+)?(-\S*)?$/
stages:
- test
- name: deploy
if: tag IS present AND repo = jcrist/quickle
jobs:
fast_finish: true
include:
- name: linux-tests
stage: test
language: python
python:
- "3.8"
install:
- pip install pytest black flake8 sphinx
- pip install -e .
script:
- set -e
- pytest -v
- flake8
- black --check .
- |
pushd docs
make html
popd
if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" ]]; then
pip install doctr
doctr deploy . --built-docs docs/build/html/
fi
- name: linux-tests-39
stage: test
language: python
python:
- "3.9-dev"
install:
- pip install pytest
- pip install -e .
script:
- set -e
- pytest -v
- name: windows-tests
stage: test
os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
install:
- python3 -m pip install -U pytest
- python3 -m pip install -e .
- pytest -v
# Deploy source distribution
- name: deploy-sdist
stage: deploy
language: python
python:
- "3.8"
script: python3 setup.py sdist --formats=gztar
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing dist/*.tar.gz
# Deploy on linux
- name: deploy-wheel-linux
stage: deploy
language: python
python:
- "3.8"
services: docker
install: python3 -m pip install cibuildwheel==1.6.3
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
# Deploy on mac
- name: deploy-wheel-macos
stage: deploy
os: osx
language: shell
install: python3 -m pip install cibuildwheel==1.6.3
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
# Deploy on windows
- name: deploy-wheel-windows
stage: deploy
os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
install: python3 -m pip install cibuildwheel==1.6.3
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl