tesseract/.travis.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2015-09-07 01:54:05 +08:00
language: cpp
notifications:
email: false
sudo: required
os:
- linux
2017-03-26 02:56:58 +08:00
- osx
2015-09-07 01:54:05 +08:00
2017-03-26 02:56:58 +08:00
#branches:
#only:
#- master
2015-09-07 01:54:05 +08:00
2015-09-07 01:59:04 +08:00
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
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
2017-03-26 03:01:27 +08:00
#- if [[ $OSX ]]; then brew update; fi
2015-09-07 02:15:04 +08:00
2016-12-24 19:17:59 +08:00
- export LEPT_VER=1.74.0
2016-01-14 19:01:55 +08:00
2015-09-07 01:54:05 +08:00
install:
2017-03-26 03:06:12 +08:00
#- if [[ $OSX ]]; then brew install icu4c pango; brew link --force gettext; fi
#- if [[ $OSX ]]; then export ICU_ROOT=/usr/local/opt/icu4c ; fi
2017-03-26 03:04:57 +08:00
- if [[ $LINUX ]]; then wget https://www.cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh; fi
- if [[ $LINUX ]]; then sudo sh cmake-3.7.2-Linux-x86_64.sh --skip-license --prefix=/usr; fi
2016-12-24 19:39:20 +08:00
- wget -O leptonica.zip https://github.com/DanBloomberg/leptonica/archive/$LEPT_VER.zip
2015-09-07 01:54:05 +08:00
- unzip leptonica.zip -d .
2016-01-14 19:01:55 +08:00
- cmake -Hleptonica-$LEPT_VER -Bleptonica-$LEPT_VER/build
- make -C leptonica-$LEPT_VER/build
2015-09-07 03:12:45 +08:00
- if [[ $LINUX && "$CXX" = "g++" ]]; then export CXX="g++-4.8" CC="gcc-4.8"; 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