forked from sirfz/tesserocr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.26 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
35
36
37
os: linux
dist: trusty
sudo: required
language: python
python:
- "2.7"
- "pypy"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "pypy3"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y autoconf automake libtool
- sudo apt-get install -y libpng12-dev
- sudo apt-get install -y libjpeg62-dev
- sudo apt-get install -y libtiff4-dev
- sudo apt-get install -y zlib1g-dev
- wget http://www.leptonica.org/source/leptonica-1.73.tar.gz -O /tmp/leptonica.tar.gz
- tar -xvf /tmp/leptonica.tar.gz
- pushd leptonica-1.73 && ./configure && make && sudo make install && popd
- wget https://github.com/tesseract-ocr/tesseract/archive/3.04.01.tar.gz -O /tmp/tesseract.tar.gz
- tar -xvf /tmp/tesseract.tar.gz
- cd tesseract-3.04.01
- ./autogen.sh && ./configure
- LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make
- sudo make install && sudo ldconfig
- cd ..
- wget https://github.com/tesseract-ocr/tessdata/archive/3.04.00.tar.gz -O /tmp/tessdata.tar.gz
- tar -xvf /tmp/tessdata.tar.gz
- sudo mkdir -p /usr/local/share/tessdata/
- sudo rsync -a tessdata-3.04.00/ /usr/local/share/tessdata
install:
- pip install Cython
- pip install Pillow
script: python setup.py test