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:
#  - mvn -B clean verify -Pes-1x
#  - mvn -B clean verify -Pes-2x
  - mvn -B clean verify
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:
#  - mvn -B clean deploy -Pes-1x --settings deploy-settings.xml
#  - mvn -B clean verify -Pes-2x
  - 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


Deploy snapshot automatically (even if it fails in tests)
Deploy snapshot automatically (even if it fails in tests)
