forked from mrocklin/chest
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
31 lines (26 loc) · 960 Bytes
/
.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
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
env:
- PEP8_IGNORE=""
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install coverage --use-mirrors
- pip install pep8 --use-mirrors
# command to run tests
# require 100% coverage (not including test files) to pass Travis CI test
# To skip pypy: - if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then DOSTUFF ; fi
script:
- coverage run --source=chest $(which nosetests)
--with-doctest
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage report --show-missing --fail-under=100 ; fi
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pep8 --ignore=$PEP8_IGNORE --exclude=conf.py -r --show-source . ; fi
# load coverage status to https://coveralls.io
after_success:
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install coveralls --use-mirrors ; coveralls ; fi
notifications:
email: false