-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
54 lines (47 loc) · 1.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
language: "python"
sudo: false
dist: trusty
cache:
directories:
- $HOME/.cache/pip
branches:
only:
- master
env:
- TOXENV=py27-twlatest
- TOXENV=py27-twtrunk
- TOXENV=py27-twlowest
- TOXENV=pypy-twlatest
- TOXENV=pypy-twtrunk
- TOXENV=pypy-twlowest
# Test inplace on one variant
- TOXENV=py27-twlatest DEVELOP=--develop
matrix:
allow_failures:
- env: TOXENV=py27-twtrunk
- env: TOXENV=pypy-twtrunk
install:
# Install a newer PyPy version
- |
if [ "${TOXENV::5}" == "pypy-" ]; then
export PYENV_ROOT="$HOME/updated-pyenv"
git clone --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT
export PATH="$PYENV_ROOT/bin:$PATH"
hash -r
eval "$(command pyenv init -)"
pyenv install pypy-5.7.0
pyenv global pypy-5.7.0
fi
- pip install -U pip setuptools wheel
- pip install tox codecov
script:
- tox ${DEVELOP}
after_success:
- codecov
notifications:
email: false
irc:
channels: "chat.freenode.net#divmod"
template:
- "%{repository}@%{branch} - %{author}: %{message} (%{build_url})"
use_notice: true