-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (57 loc) · 1.33 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
language: python
sudo: false
cache: pip
branches:
only:
- master
matrix:
include:
- python: 2.7
env: TOXENV=py27-twlatest
- python: pypy
env: TOXENV=pypy-twlatest
- python: 2.7
env: TOXENV=py27-twtrunk
- python: pypy
env: TOXENV=pypy-twtrunk
- python: 2.7
env: TOXENV=py27-twlowest
- python: pypy
env: TOXENV=pypy-twlowest
- python: 2.7
env: TOXENV=py27-nwlatest
- python: pypy
env: TOXENV=pypy-nwlatest
- python: 2.7
env: TOXENV=py27-nwtrunk
- python: pypy
env: TOXENV=pypy-nwtrunk
- python: 2.7
env: TOXENV=py27-nwlowest
- python: pypy
env: TOXENV=pypy-nwlowest
- python: 2.7
env: TOXENV=flake8
install:
# Upgrade packaging tools separately, so that other installations are
# performed with the upgraded tools.
- pip install -U pip setuptools wheel
- pip install tox codecov
- |
if [ "${TOXENV::5}" == "pypy-" ]; then
git clone --depth 1 https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install pypy-5.4.1
pyenv global pypy-5.4.1
fi
script:
- tox
after_success:
# Codecov needs combined coverage, and having the raw report in the test
# output can be useful.
- tox -e coverage-report
- codecov
notifications:
email: false