# Travis CI build

language: java
os: linux

jdk:
  - openjdk8
  - openjdk11

before_script:
  - export ANT_VERSION=1.10.9
  - wget --no-cookies https://downloads.apache.org/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz
  - wget --no-cookies https://downloads.apache.org/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz.sha512
  - echo "$(cat apache-ant-${ANT_VERSION}-bin.tar.gz.sha512) apache-ant-${ANT_VERSION}-bin.tar.gz" | sha512sum -c
  - tar -zvxf apache-ant-${ANT_VERSION}-bin.tar.gz -C /opt/
  - ln -s /opt/apache-ant-${ANT_VERSION} /opt/ant
  - rm -f apache-ant-${ANT_VERSION}-bin.tar.gz
  - rm -f apache-ant-${ANT_VERSION}-bin.tar.gz.sha512
  - export PATH="/opt/ant/bin:$PATH"
  - ant -version

script:
  - ant -logger org.apache.tools.ant.NoBannerLogger clean build check

# Travis CI build

language: java
os: linux

jdk:
  - openjdk8
  - openjdk11

before_script:
  - export ANT_VERSION=1.10.9
  - wget --no-cookies https://downloads.apache.org/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz
  - wget --no-cookies https://downloads.apache.org/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz.sha512
  - echo "$(cat apache-ant-${ANT_VERSION}-bin.tar.gz.sha512) apache-ant-${ANT_VERSION}-bin.tar.gz" | sha512sum -c
  - tar -zvxf apache-ant-${ANT_VERSION}-bin.tar.gz -C /opt/
  - ln -s /opt/apache-ant-${ANT_VERSION} /opt/ant
  - rm -f apache-ant-${ANT_VERSION}-bin.tar.gz
  - rm -f apache-ant-${ANT_VERSION}-bin.tar.gz.sha512
  - export PATH="/opt/ant/bin:$PATH"

script:
  - ant -version
  - ant -logger org.apache.tools.ant.NoBannerLogger clean build check

Print Ant version on CI build.
Print Ant version on CI build.
