2015-09-07 01:54:05 +08:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
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 01:54:05 +08:00
|
|
|
install:
|
|
|
|
- wget http://www.cmake.org/files/v3.3/cmake-3.3.1-Linux-x86_64.sh
|
|
|
|
- sudo sh cmake-3.3.1-Linux-x86_64.sh --skip-license --prefix=/usr
|
|
|
|
- wget -O leptonica.zip https://github.com/egorpugin/leptonica/archive/master.zip
|
|
|
|
- unzip leptonica.zip -d .
|
|
|
|
- cmake -Hleptonica-master -Bleptonica-master/build
|
2015-09-07 01:59:04 +08:00
|
|
|
- make -C leptonica-master/build
|
|
|
|
- if [ "$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
|
|
|
|
- cmake .. -DLeptonica_DIR=leptonica-master/build
|
|
|
|
- make
|