forked from pganssle/bdateutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (34 loc) · 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
# https://travis-ci.org/ryanss/python-bdateutil
language: python
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- pypy
env:
- DATEUTIL=python-dateutil==2.2
- DATEUTIL=python-dateutil
before_install:
# From https://github.com/dateutil/dateutil/blob/master/.travis.yml
# Travis version of Pypy is old and is causing some jobs to fail, so
# we should build this ourselves
- "export PYENV_ROOT=$HOME/.pyenv"
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
export PYPY_VERSION="5.4.1"
source ./pypy_upgrade.sh
fi
install:
- pip install $DATEUTIL
- python setup.py install
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install flake8==2.6.2 unittest2; fi
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then pip install flake8; fi
- pip install coveralls
before_script:
- flake8 bdateutil/*.py tests.py --ignore=F401,E402,F403,F405
script:
- coverage run --omit=*site-packages*,*pypy*,*dateutil_tests/* tests.py
after_success:
- coveralls