forked from deanmalmgren/textract
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (32 loc) · 939 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
38
dist: focal
os: linux
language: python
python:
- "2.7"
- "3.7"
# install system dependencies here with apt-get.
before_install:
- sudo ./provision/debian.sh
- python -m pip install --upgrade pip
# install python dependencies including this package in the travis
# virtualenv
install:
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]];
then ./provision/python3.sh;
fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]];
then ./provision/python2.sh;
fi
- pip install .[pocketsphinx]
# commands to run the testing suite. if any of these fail, travic lets us know
script:
- cd tests && make && cd -
- nosetests --with-coverage --cover-package=textract
- cd tests && pytest && cd -
# - pycodestyle textract/ bin/textract
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]];
then cd docs && make html && cd -;
fi
# commands to run after the tests successfully complete
after_success:
- coveralls