tesseract/.travis.yml

45 lines
981 B
YAML
Raw Normal View History

# Travis CI configuration for Tesseract
2015-09-07 01:54:05 +08:00
language: cpp
dist: trusty
env:
- LEPT_VER=1.74.1
2015-09-07 01:54:05 +08:00
notifications:
email: false
sudo: false
2015-09-07 01:54:05 +08:00
os:
- linux
2017-03-26 02:56:58 +08:00
- osx
2015-09-07 01:54:05 +08:00
2015-09-07 01:59:04 +08:00
addons:
apt:
sources:
#- ubuntu-toolchain-r-test
2015-09-07 01:59:04 +08:00
packages:
#- g++-6
cache:
directories:
- leptonica-$LEPT_VER
2015-09-07 01:59:04 +08:00
2015-09-07 02:15:04 +08:00
before_install:
2015-09-07 02:58:49 +08:00
- if [[ $TRAVIS_OS_NAME == linux ]]; then LINUX=true; fi
- if [[ $TRAVIS_OS_NAME == osx ]]; then OSX=true; fi
2015-09-07 01:54:05 +08:00
install:
#- if [[ $LINUX && "$CXX" = "g++" ]]; then export CXX="g++-6" CC="gcc-6"; fi
- if test ! -d leptonica-$LEPT_VER/src; then curl -Ls https://github.com/DanBloomberg/leptonica/archive/$LEPT_VER.tar.gz | tar -xz; fi
- if test ! -d leptonica-$LEPT_VER/build/src; then cmake -Hleptonica-$LEPT_VER -Bleptonica-$LEPT_VER/build; fi
- if test ! -e leptonica-$LEPT_VER/build/src/libleptonica.so; then make -C leptonica-$LEPT_VER/build; fi
2015-09-07 01:54:05 +08:00
script:
- mkdir build
- cd build
2016-01-26 19:15:17 +08:00
- cmake .. -DLeptonica_DIR=leptonica-$LEPT_VER/build
2015-09-07 01:54:05 +08:00
- make