2017-05-06 04:30:08 +08:00
|
|
|
# Travis CI configuration for Tesseract
|
2021-05-16 17:56:12 +08:00
|
|
|
|
2021-03-08 02:31:02 +08:00
|
|
|
sudo: false
|
2015-09-07 01:54:05 +08:00
|
|
|
notifications:
|
|
|
|
email: false
|
2021-03-08 02:31:02 +08:00
|
|
|
language: cpp
|
2017-04-22 23:51:39 +08:00
|
|
|
|
2021-03-08 02:31:02 +08:00
|
|
|
os: linux
|
|
|
|
dist: focal
|
|
|
|
arch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- ppc64le
|
|
|
|
- s390x
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
env:
|
|
|
|
cache:
|
|
|
|
directories:
|
2015-09-07 01:54:05 +08:00
|
|
|
|
2021-03-08 02:31:02 +08:00
|
|
|
before_install:
|
2021-05-16 17:56:12 +08:00
|
|
|
- sudo apt-get install libleptonica-dev libpango1.0-dev libtiff5-dev -y
|
2021-03-08 02:31:02 +08:00
|
|
|
|
|
|
|
install:
|
2021-02-26 17:56:42 +08:00
|
|
|
|
2021-03-08 02:31:02 +08:00
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2021-05-16 17:56:12 +08:00
|
|
|
- cmake .. -DSW_BUILD=OFF
|
2021-03-08 02:31:02 +08:00
|
|
|
- make
|
|
|
|
- sudo make install
|
2021-03-08 08:02:25 +08:00
|
|
|
|
|
|
|
#after_script: # let those commands trigger build errors
|
2021-03-08 02:31:02 +08:00
|
|
|
- tesseract -v
|
|
|
|
- text2image -v
|
|
|
|
- lstmtraining -v
|
|
|
|
- ls /home/travis/build/tesseract-ocr/tesseract/test/testing/*.tif
|
|
|
|
- wget https://github.com/egorpugin/tessdata/raw/master/tessdata/eng.traineddata
|
|
|
|
- tesseract /home/travis/build/tesseract-ocr/tesseract/test/testing/phototest.tif - -l eng --tessdata-dir ./
|