From a40c9e2ca15cf2327e1635601e363a0b059ba603 Mon Sep 17 00:00:00 2001 From: Matej Plavevski Date: Sun, 3 Dec 2017 21:18:17 +0100 Subject: [PATCH] Create .travis.yml Update .travis.yml Update .travis.yml --- .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..893ddb9b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: c +os: + - osx + - linux + +sudo: + - true + +compiler: +- gcc +- clang + +install: +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install pkg-config autoconf automake libtool tesseract leptonica; fi +- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install -y libcurl4-gnutls-dev tesseract-ocr tesseract-ocr-dev libleptonica-dev; fi + +script: +- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd mac; ./build.command; fi +- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd mac; ./autogen.sh; ./configure; make; fi +- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd linux; ./build; cd ..; fi +- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir build; cd build; cmake ../src/; make; fi +- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd linux; ./autogen.sh; ./configure; make; fi