forked from sirfz/tesserocr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.1 KB
/
.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
os: linux
dist: trusty
sudo: false
language: python
python:
- "2.7"
- "pypy"
- "pypy3.5"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
env:
matrix:
- TESSERACT=3.04.01-1
- TESSERACT=3.05.02-3
- TESSERACT=4.0.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/master/osd.traineddata && cd -
- cd $TESSERACT_INSTALL/share/tessdata && rm -f eng.traineddata && wget https://github.com/tesseract-ocr/tessdata/raw/master/eng.traineddata && cd -
install:
- pip install Cython
- pip install Pillow
script:
- export LC_ALL=C
- export LC_CTYPE=C
- export LC_NUMERIC=C
- python setup.py test