Try using a different path for the script
This commit is contained in:
parent
9576c0ba1d
commit
cbc9728c02
1 changed files with 2 additions and 2 deletions
|
@ -3,14 +3,14 @@ cache:
|
||||||
- $HOME/.m2/repository/org/
|
- $HOME/.m2/repository/org/
|
||||||
before_install: | # Wget BuildTools and run if cached folder not found
|
before_install: | # Wget BuildTools and run if cached folder not found
|
||||||
export JAVA_HOME=$HOME/oraclejdk8
|
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
|
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
|
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
|
# 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*$"
|
java -jar BuildTools.jar --rev 1.12.2 | grep -vE "[^/ ]*/[^/ ]*\s*KB\s*$" | grep -v "^\s*$"
|
||||||
fi
|
fi
|
||||||
export JAVA_HOME=$HOME/oraclejdk11
|
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
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk11
|
- oraclejdk11
|
||||||
|
|
Loading…
Reference in a new issue