language: java
sudo: false
jdk:
  - oraclejdk8
before_script:
  - echo "MAVEN_OPTS=-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" > ~/.mavenrc
install: true
script:
# Let's skip for now branch 1.x
#  - mvn -B clean verify -Pes-1x
  - mvn -B clean verify -Pes-2x-travis
  - mvn -B 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: false
jdk:
  - oraclejdk8
before_script:
  - echo "MAVEN_OPTS=-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" > ~/.mavenrc
install: true
script:
# Let's skip for now branch 1.x
#  - mvn -B clean verify -Pes-1x
#  - mvn -B clean verify -Pes-2x-travis
  - mvn -B 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 tests against 2.x cluster (temporary)
Disable tests against 2.x cluster (temporary)

Related to #256: Fix `testProtectedDocument221` test
