-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
32 lines (26 loc) · 837 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
32
# Config file for automatic testing at travis-ci.org
language: python
python:
- "pypy3"
- "pypy"
- "3.8"
- "3.7"
- "3.6"
- "3.5"
- "2.7"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -r requirements.txt
- pip install coverage
# command to run tests, e.g. python setup.py test
script:
- coverage run --source pronouncing setup.py test --verbose
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then python -m doctest pronouncing/__init__.py; fi
after_success:
- pip install coveralls
- coveralls # send coverage to coveralls.io
after_script:
- coverage report # show coverage on cmd line
- pip install pycodestyle pyflakes
- pyflakes . | tee >(wc -l) # static analysis
- pycodestyle --statistics --count . # static analysis