.travis.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Travis CI configuration for Tesseract
  2. language: cpp
  3. dist: xenial
  4. env:
  5. - LEPT_VER=1.78.0
  6. notifications:
  7. email: false
  8. sudo: false
  9. os:
  10. - linux
  11. - osx
  12. addons:
  13. apt:
  14. sources:
  15. #- ubuntu-toolchain-r-test
  16. packages:
  17. - libarchive-dev
  18. - libpango1.0-dev
  19. #- g++-6
  20. #matrix:
  21. #include:
  22. #- os: osx
  23. #install:
  24. #script: brew install tesseract --HEAD
  25. #cache:
  26. #directories:
  27. #- $HOME/Library/Caches/Homebrew
  28. #allow_failures:
  29. #- script: brew install tesseract --HEAD
  30. cache:
  31. directories:
  32. - leptonica-$LEPT_VER
  33. before_install:
  34. - if [[ $TRAVIS_OS_NAME == linux ]]; then LINUX=true; fi
  35. - if [[ $TRAVIS_OS_NAME == osx ]]; then OSX=true; fi
  36. install:
  37. #- if [[ $LINUX && "$CXX" = "g++" ]]; then export CXX="g++-6" CC="gcc-6"; fi
  38. - if test ! -d leptonica-$LEPT_VER/src; then curl -Ls https://github.com/DanBloomberg/leptonica/archive/$LEPT_VER.tar.gz | tar -xz; fi
  39. - if test ! -d leptonica-$LEPT_VER/usr; then cmake -Hleptonica-$LEPT_VER -Bleptonica-$LEPT_VER/build -DCMAKE_INSTALL_PREFIX=leptonica-$LEPT_VER/usr; fi
  40. - if test ! -e leptonica-$LEPT_VER/usr/lib/libleptonica.so; then make -C leptonica-$LEPT_VER/build install; fi
  41. script:
  42. - mkdir build
  43. - cd build
  44. - cmake .. -DLeptonica_DIR=leptonica-$LEPT_VER/build -DSW_BUILD=OFF
  45. - make
Tip!

Press p or to see the previous file or, n or to see the next file