forked from veelion/langdetect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 986 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
33
34
35
36
37
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "pypy"
- "pypy3"
# Use container-based infrastructure
sudo: false
install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi
- pip install .
- pip install -r requirements.txt
# Coverage 4.0 doesn't support Python 3.2
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then coverage run --source=langdetect --omit=langdetect/tests/* -m unittest2 discover; fi
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then coverage run --source=langdetect --omit=langdetect/tests/* -m unittest discover; fi
after_success:
- pip install coveralls
- coveralls
after_script:
- coverage report
- pip install pep8 pyflakes
- pyflakes .| tee >(wc -l)
- pep8 --statistics --count .