-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
34 lines (28 loc) · 981 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
language: python
python:
- 3.2
- 3.3
- 3.4
- pypy3
install:
- sudo add-apt-repository ppa:webupd8team/java -y
- sudo apt-get update
- sudo apt-get install oracle-java8-installer
- sudo update-alternatives --set java /usr/lib/jvm/java-8-oracle/jre/bin/java
- sudo update-alternatives --set javac /usr/lib/jvm/java-8-oracle/bin/javac
- pip install scrutinizer-ocular webtest httmock requests ppp_datamodel ppp_core jsonrpclib-pelix nltk
# Coveralls 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
- echo "y
y
y
" | python -m nltk.downloader wordnet
before_script:
- ./dependencies.sh
- ./setup.py install
script:
- rm ppp_questionparsing_grammatical* -rf
- coverage3 run run_tests.py
after_script:
- ocular --data-file ".coverage"