forked from pallets/werkzeug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (55 loc) · 1.44 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
sudo: false
language: python
python:
- 2.6
- 2.7
- pypy
- 3.3
- 3.4
- 3.5
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
- '[ "$TRAVIS_PYTHON_VERSION" = "2.6" ] || make stylecheck'
branches:
only:
- master
- auto
- /^.*-maintenance$/
notifications:
email: false