BuildTools cache

Travis Caches BuildTools folder.
This commit is contained in:
jameslfc19 2020-07-04 17:58:58 +01:00
parent 22caa759b4
commit e576e48fc4
2 changed files with 3 additions and 3 deletions

View File

@ -15,6 +15,7 @@ script:
cache:
directories:
- $HOME/.m2
- BuildTools
deploy:
provider: releases

View File

@ -1,9 +1,6 @@
#!/bin/sh
echo "Checking BuildTools cache"
#Download BuildTools jar
curl -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
#Local Maven Repo
MAVEN_DIR="$HOME/.m2"
@ -13,6 +10,8 @@ CRAFTBUKKIT="${MAVEN_DIR}/repository/org/bukkit/craftbukkit"
#Versions
array=("1.16.1" "1.15.2" "1.14.4")
#Download BuildTools jar
curl -s -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
for i in "${array[@]}"
do