-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
34 lines (26 loc) · 897 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
language: python
python:
- "3.7"
os:
- linux
env:
- ENV=CI
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$MINICONDA_OS-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p "$HOME"/miniconda
- source "$HOME"/miniconda/etc/profile.d/conda.sh
- conda config --set always_yes yes --set changeps1 no --set auto_update_conda false
- python -m pip install --upgrade pip
- sudo apt-get update
- sudo apt-get -y install python3-pyqt5
- sudo apt-get install tesseract-ocr libtesseract-dev libleptonica-dev pkg-config
- pip install -r requirements.txt
- pip install tesserocr
- export LANG=en_US.UTF-8
- export COVERAGE_DIR=":$HOME/htmlcov"
- printenv | sort
# command to run tests
script: pytest --log-cli-level=warning
after_success:
- codecov