-
Notifications
You must be signed in to change notification settings - Fork 253
/
.travis.yml
29 lines (29 loc) · 1012 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
os: linux
dist: xenial
sudo: false
language: python
python:
- "pypy"
- "pypy3.5"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
env:
matrix:
- TESSERACT=3.05.02-3
- TESSERACT=4.1.0-1
before_install:
- export TESSERACT_INSTALL=$HOME/.tesseract
- export TESSERACT_PKG=$TESSERACT_INSTALL/lib/pkgconfig
- export LD_LIBRARY_PATH=$TESSERACT_INSTALL/lib:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=$TESSERACT_PKG:$PKG_CONFIG_PATH
- wget -O - https://github.com/nijel/tesseract-ocr-build/releases/download/$TESSERACT/tesseract.tar.xz | tar -C $HOME -xJf -
- cd $TESSERACT_INSTALL/share/tessdata && rm -f osd.traineddata && wget https://github.com/tesseract-ocr/tessdata/raw/4.1.0/osd.traineddata && cd -
- cd $TESSERACT_INSTALL/share/tessdata && rm -f eng.traineddata && wget https://github.com/tesseract-ocr/tessdata/raw/4.1.0/eng.traineddata && cd -
install:
- pip install -U -r requirements-dev.txt
script:
- python setup.py test