forked from pairofdocs/gomule-d2r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (27 loc) · 928 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
os: windows
# Travis CI Windows doesn't support java yet
language: shell
env:
global:
# TODO: avoid having this jdk version is hard-coded here
- JAVA_HOME="/c/Program Files/AdoptOpenJDK/jdk-8.0.292.10-hotspot"
- ANT_HOME="/c/Users/travis/apache-ant"
- PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
before_install:
- pwd # /c/Users/travis/build/<github-user>/<repo-name>
# Install the required JDK (must match JAVA_HOME in env: section)
- choco install adoptopenjdk8
# Check JAVA_HOME is correct
- ls "/c/Program Files/AdoptOpenJDK"
# Install ant at $ANT_HOME (chosen in env: section)
- curl https://downloads.apache.org/ant/binaries/apache-ant-1.10.11-bin.zip -o apache-ant.zip
- unzip -q apache-ant.zip
- rm apache-ant.zip
- mv apache-ant-1.10.11 $ANT_HOME
install:
# Confirm versions and paths
- echo $PATH
- java -version
- ant -version
- cd gomule
- ant Jar-BuildAllOptimezed