forked from brechtm/rinohtype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (57 loc) · 1.6 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
language: python
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip
python:
- 3.3
- 3.4
- 3.5
- 3.6-dev
- nightly
- pypy3.3-5.2-alpha1
env:
- DIST=sdist
WITH_COVERAGE=1
- DIST=wheel
WITH_COVERAGE=0
matrix:
fast_finish: true
include:
- python: 3.5
env: TOXENV=check
- python: 3.5
env:
- TOXENV=regression
TIMEOUT=45
WITH_COVERAGE=1
addons:
apt:
packages:
- imagemagick
before_install:
# install poppler 0.41.0 (required by the diffpdf script)
- travis_retry curl -L http://brechtm.github.io/rinohtype-travis/dotlocal.tar.xz | tar xJ -C ~
- export PATH=$HOME/.local/bin:$PATH
- export LD_LIBRARY_PATH=$HOME/.local/lib
- python: 3.6-dev
env: TOXENV=test-docs
- python: 3.6-dev
env: TOXENV=build-docs
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