forked from brechtm/rinohtype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
149 lines (140 loc) · 3.59 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
dist: bionic
language: python
sudo: false
cache:
apt: true
pip: true
python:
- 3.5
- 3.6
- 3.7
- 3.8
- 3.8-dev
- nightly
- pypy3
env:
- DIST=sdist
WITH_COVERAGE=1
- DIST=wheel
WITH_COVERAGE=0
matrix:
fast_finish: true
include:
- python: 3.8
env: TOXENV=check
- python: 3.8
env:
- TOXENV=regression
WITH_COVERAGE=1
addons:
apt:
packages:
- imagemagick
- poppler-utils
- os: osx
sudo: required
language: objective-c
cache:
pip: false
directories:
- /usr/local/Homebrew
- $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches/pip
- $HOME/.pyenv
env:
- DIST=sdist
TOXENV=py35,py36,py37,py38
WITH_COVERAGE=1
before_install:
- brew unlink pyenv
- brew install --HEAD pyenv
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.5.9
- pyenv install --skip-existing 3.6.10
- pyenv install --skip-existing 3.7.6
- pyenv install --skip-existing 3.8.1
- pyenv global 3.8.1 3.7.6 3.6.10 3.5.9
- python --version
- python3 --version
- python3.5 --version
- python3.6 --version
- python3.7 --version
- python3.8 --version
before_cache:
- brew cleanup
- os: osx
sudo: required
language: objective-c
cache:
pip: false
directories:
- /usr/local/Homebrew
- $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches/pip
- $HOME/.pyenv
env:
- TOXENV=regression
WITH_COVERAGE=1
before_install:
- brew unlink python@2
- brew bundle --verbose
- brew unlink pyenv
- brew install --HEAD pyenv
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.8.1
- pyenv global 3.8.1
- python --version
- python3 --version
before_cache:
- brew cleanup
- python: 3.8
env:
- TOXENV=longrunning
TIMEOUT=45
WITH_COVERAGE=0
addons:
apt:
packages:
- imagemagick
- poppler-utils
- python: 3.8
env: TOXENV=test-docs
- python: 3.8
env: TOXENV=build-docs
- os: osx
sudo: required
language: objective-c
cache:
pip: false
directories:
- /usr/local/Homebrew
- $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches/pip
- $HOME/.pyenv
env:
- TOXENV=macapp
before_install:
- brew unlink pyenv
- brew install --HEAD pyenv
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.7.6
- pyenv global 3.7.6
- python --version
before_cache:
- brew cleanup
install:
- pip install tox-travis wheel
- python setup.py bdist_wheel
script:
- function timeout { [ -z $TIMEOUT ] || echo "travis_wait $TIMEOUT"; }
- function installpkg { [[ $DIST == "wheel" ]] && echo "--installpkg ./dist/rinohtype-*.whl"; }
- $(timeout) tox -v $(installpkg)
after_success:
- "[[ $WITH_COVERAGE -eq 1 ]] && bash <(curl -s https://codecov.io/bash) -f coverage.xml -F ${TOXENV:-unittests}"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/cccb04073ce95d678fd3
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always