Try using a different path for the script

This commit is contained in:
Norbi Peti 2020-11-01 19:14:47 +01:00
parent 9576c0ba1d
commit cbc9728c02
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -3,14 +3,14 @@ cache:
- $HOME/.m2/repository/org/
before_install: | # Wget BuildTools and run if cached folder not found
export JAVA_HOME=$HOME/oraclejdk8
$TRAVIS_BUILD_DIR/install-jdk.sh --install oraclejdk8 --target $JAVA_HOME
~/bin/install-jdk.sh --install oraclejdk8 --target $JAVA_HOME
if [ ! -d "$HOME/.m2/repository/org/spigotmc/spigot/1.12.2-R0.1-SNAPSHOT" ]; then
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
# grep so that download counts don't appear in log files
java -jar BuildTools.jar --rev 1.12.2 | grep -vE "[^/ ]*/[^/ ]*\s*KB\s*$" | grep -v "^\s*$"
fi
export JAVA_HOME=$HOME/oraclejdk11
$TRAVIS_BUILD_DIR/install-jdk.sh --install oraclejdk11 --target $JAVA_HOME
~/bin/install-jdk.sh --install oraclejdk11 --target $JAVA_HOME
language: java
jdk:
- oraclejdk11