Skip to content

Commit

Permalink
Add env var for Ant version to Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbjones committed Aug 5, 2019
1 parent 7a4ed40 commit a767313
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ language: java

dist: bionic

env:
- ANT="apache-ant-1.10.6"

cache:
directories:
- apache-ant-1.10.6
- ${ANT}

before_install:
- sudo apt-get update
- sudo apt-get install -y xmlstarlet
- if [ -d "apache-ant-1.10.6" ]; then echo "Ant already downloaded..."; fi
- if [ ! -d "apache-ant-1.10.6" ]; then echo "Downloading ant..."; wget https://www.apache.org/dist/ant/binaries/apache-ant-1.10.6-bin.tar.gz; tar -xzvf apache-ant-1.10.6-bin.tar.gz; fi
- export PATH=`pwd`/apache-ant-1.10.6/bin:$PATH
- echo $(ant -version)
- if [ -d "${ANT}" ]; then echo "${ANT} already downloaded..."; ls -l ${ANT}; fi
- if [ ! -d "apache-ant-1.10.6" ]; then echo "Downloading ${ANT}..."; wget https://www.apache.org/dist/ant/binaries/${ANT}-bin.tar.gz; tar -xzvf ${ANT}-bin.tar.gz; fi
- export PATH=`pwd`/${ANT}/bin:$PATH

install:
- ant -diagnostics
Expand Down

0 comments on commit a767313

Please sign in to comment.