forked from pallets/werkzeug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (56 loc) · 1.41 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
sudo: false
language: python
python:
- 2.6
- 2.7
- pypy
- 3.3
- 3.4
- 3.5
- 3.6
- nightly
env:
- TOXENV_SUFFIX=normal
- TOXENV_SUFFIX=stylecheck
- TOXENV_SUFFIX=uwsgi
matrix:
exclude:
- python: pypy
env: TOXENV_SUFFIX=uwsgi
- python: 2.6 # flake8 doesn't run on 2.6
env: TOXENV_SUFFIX=stylecheck
include:
- os: osx
language: generic
env: TOXENV_SUFFIX=normal
os: linux
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install python3 redis memcached;
virtualenv ~/py-env -p python3;
. ~/py-env/bin/activate;
fi
# Travis uses an outdated PyPy, this installs the most recent one.
# This makes the tests run on Travis' legacy infrastructure, but so be it.
# temporary pyenv installation to get pypy-2.6 before container infra upgrade
- if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
git clone https://github.com/yyuu/pyenv.git ~/.pyenv;
PYENV_ROOT="$HOME/.pyenv";
PATH="$PYENV_ROOT/bin:$PATH";
eval "$(pyenv init -)";
pyenv install pypy-4.0.1;
pyenv global pypy-4.0.1;
fi
- python --version
install:
- pip install tox flake8
script:
- tox -e py-$TOXENV_SUFFIX
branches:
only:
- master
- auto
- /^.*-maintenance$/
notifications:
email: false