forked from twisted/treq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (88 loc) · 2.4 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
# AUTO-GENERATED BY tox2travis.py -- DO NOT EDIT THIS FILE BY HAND!
sudo: false
language: python
cache: pip
matrix:
include:
- python: pypy
env: TOXENV=pypy-twisted_lowest
- python: pypy
env: TOXENV=pypy-twisted_latest
- python: '2.7'
env: TOXENV=py27-twisted_lowest
- python: '2.7'
env: TOXENV=py27-twisted_latest
- python: '3.5'
env: TOXENV=py35-twisted_lowest
- python: '3.5'
env: TOXENV=py35-twisted_latest
- python: '3.6'
env: TOXENV=py36-twisted_lowest
- python: '3.6'
env: TOXENV=py36-twisted_latest
- python: '3.7'
env: TOXENV=py37-twisted_lowest
dist: xenial
sudo: true
- python: '3.7'
env: TOXENV=py37-twisted_latest
dist: xenial
sudo: true
- python: pypy
env: TOXENV=pypy-twisted_trunk-pyopenssl_trunk
- python: '2.7'
env: TOXENV=py27-twisted_trunk-pyopenssl_trunk
- python: '3.5'
env: TOXENV=py35-twisted_trunk-pyopenssl_trunk
- python: '3.6'
env: TOXENV=py36-twisted_trunk-pyopenssl_trunk
- python: '3.7'
env: TOXENV=py37-twisted_trunk-pyopenssl_trunk
dist: xenial
sudo: true
- python: '2.7'
env: TOXENV=pypi-readme
- python: '2.7'
env: TOXENV=check-manifest
- python: '2.7'
env: TOXENV=flake8
- python: '2.7'
env: TOXENV=docs
# Don't fail on trunk versions.
allow_failures:
- env: TOXENV=pypy-twisted_trunk-pyopenssl_trunk
- env: TOXENV=py27-twisted_trunk-pyopenssl_trunk
- env: TOXENV=py35-twisted_trunk-pyopenssl_trunk
- env: TOXENV=py36-twisted_trunk-pyopenssl_trunk
- env: TOXENV=py37-twisted_trunk-pyopenssl_trunk
before_install:
- |
if [[ "${TOXENV::5}" == "pypy-" ]]; then
PYENV_ROOT="$HOME/.pyenv"
git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install pypy-5.4.1
pyenv global pypy-5.4.1
fi
- pip install --upgrade pip
- pip install --upgrade setuptools
install:
- pip install tox codecov
script:
- tox
after_success:
- codecov
after_failure:
- |
if [[ -f "_trial_temp/httpbin-server-error.log" ]]
then
echo "httpbin-server-error.log:"
cat "_trial_temp/httpbin-server-error.log"
fi
notifications:
email: false
branches:
only:
- master
# AUTO-GENERATED BY tox2travis.py -- DO NOT EDIT THIS FILE BY HAND!