-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
29 lines (24 loc) · 843 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
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "pypy"
env:
- PEP8_IGNORE=""
# command to install dependencies
install:
- 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
script:
- coverage run --source=sampling $(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