forked from brechtm/rinohtype
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
131 lines (122 loc) · 3.1 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
dist: bionic
language: python
sudo: false
cache:
apt: true
pip: true
python:
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9-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
WITH_COVERAGE=1
# don't set TOXENV; run all envs listed in tox.ini's envlist
addons:
homebrew:
update: true
brewfile: Brewfile
before_install:
- brew unlink pyenv
- brew install --HEAD pyenv
- eval "$(pyenv init -)"
- /usr/bin/python pyenv_setup.py
- python --version
- python3 --version
- python3.5 --version
- python3.6 --version
- python3.7 --version
- python3.8 --version
- python3.9 --version
- python3.10 --version
- pypy3 --version
- poetry install --no-root
- source .venv/bin/activate
install:
before_cache:
- brew cleanup
- python: 3.8
env:
- TOXENV=longrunning
TIMEOUT=45m
WITH_COVERAGE=0
addons:
apt:
packages:
- imagemagick
- poppler-utils
- python: 3.8
env: TOXENV=check-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 shell 3.7.6
# - python --version
# before_cache:
# - brew cleanup
install:
- pip install travis-wait-improved
- pip install tox-travis wheel
- python setup.py bdist_wheel
script:
- function timeout { [ -z $TIMEOUT ] || echo "travis-wait-improved --timeout $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