/
.travis.yml
43 lines (35 loc) · 1.29 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
43
# Config file for automatic testing at travis-ci.org
language: python
python:
- "pypy3"
- "pypy"
- "3.6"
- "3.5"
- "3.4"
- "3.3"
- "3.2"
- "2.7"
- "2.6"
# Use container-based infrastructure
sudo: false
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -r requirements.txt
# Coverage 4.0 doesn't support Python 3.2
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then pip install coverage==3.7.1; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then pip install coverage; fi
# command to run tests, e.g. python setup.py test
script: coverage run --source pronouncing setup.py test --verbose
after_success:
# Coveralls 1.0b1 doesn't support Python 3.2
# Coveralls needs Requests, where 2.11.0 doesn't support Python 3.2
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then pip install requests==2.10.0; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then pip install coveralls==1.0a2; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then pip install coveralls; fi
- pip install coveralls
- coveralls # send coverage to coveralls.io
after_script:
- coverage report # show coverage on cmd line
- pip install pep8 pyflakes
- pep8 --statistics --count . # static analysis
- pyflakes . | tee >(wc -l) # static analysis