language: java
sudo: true
jdk:
  - oraclejdk8
install: true
before_install:
  - sudo apt-get -qq update
  - sudo apt-get install -y tesseract-ocr
before_script:
  - sudo sysctl -w vm.max_map_count=262144
script:
# We fetch as much as dependencies we can but we don't print the output so it's more digest
# Sadly this is the only way to make maven download everything and not pollute the logs...
  - mvn --batch-mode clean dependency:resolve dependency:resolve-plugins install -DskipTests -Dsilent=true > /dev/null
  - mvn --batch-mode clean verify -Pes-2x-travis
  - mvn -batch-mode clean verify
  - "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} == '' ]] && mvn deploy -DskipTests --settings deploy-settings.xml"
#after_success:
#  - "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} == '' ]] && mvn deploy -DskipTests --settings deploy-settings.xml"
after_failure:
  - echo "As we got a failure, let's see what we have in elasticsearch cluster logs"
  - cat target/integration-tests/run/elasticsearch-*/logs/elasticsearch_integration.log


language: java
sudo: true
jdk:
  - oraclejdk8
install: true
#before_install:
#  - sudo apt-get -qq update
#  - sudo apt-get install -y tesseract-ocr
before_script:
  - sudo sysctl -w vm.max_map_count=262144
script:
# We fetch as much as dependencies we can but we don't print the output so it's more digest
# Sadly this is the only way to make maven download everything and not pollute the logs...
  - mvn --batch-mode clean dependency:resolve dependency:resolve-plugins install -DskipTests -Dsilent=true > /dev/null
  - mvn --batch-mode clean verify -Pes-2x-travis
  - mvn -batch-mode clean verify
  - "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} == '' ]] && mvn deploy -DskipTests --settings deploy-settings.xml"
#after_success:
#  - "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} == '' ]] && mvn deploy -DskipTests --settings deploy-settings.xml"
after_failure:
  - echo "As we got a failure, let's see what we have in elasticsearch cluster logs"
  - cat target/integration-tests/run/elasticsearch-*/logs/elasticsearch_integration.log


Disable Tesseract in Travis CI
Disable Tesseract in Travis CI
