forked from JetBrains/teamcity-messages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.08 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
sudo: false
language: python
os:
- linux
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "pypy"
- "pypy3"
env:
- PYTEST="pytest" VIRTUALENV="virtualenv" FLAKE8="flake8"
matrix:
include:
- python: 2.7
env: TEST_PY24="true" FLAKE8="" PYTEST="pytest==2.3.3 py==1.4.12" VIRTUALENV="virtualenv==1.7.2"
- python: 2.7
env: TEST_PY25="true" FLAKE8="" PYTEST="pytest==2.5.0 py==1.4.19" VIRTUALENV="virtualenv==1.9.1" PIP_OPT="--insecure"
install:
- mkdir builds
- pushd builds
- if [ "${TEST_PY24}" == "true" ]; then
deactivate;
/bin/sh ../.travis-make-py24-virtualenv.sh $PWD/py24-ve;
source $PWD/py24-ve/bin/activate;
fi
- if [ "${TEST_PY25}" == "true" ]; then
deactivate;
/bin/sh ../.travis-make-py25-virtualenv.sh $PWD/py25-ve;
source $PWD/py25-ve/bin/activate;
fi
- pip install ${PIP_OPT} ${FLAKE8} ${PYTEST} ${VIRTUALENV}
- popd
script:
- python -V
- if [ -n "${FLAKE8}" ]; then echo "running flake"; flake8 --ignore=E501 --builtins=basestring --exclude=tests/guinea-pigs; fi
- python setup.py test