From c2d13a5fc8c6e8376a6a9a1e1edbed3ce024e4c8 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 26 Jun 2017 17:35:46 +0200 Subject: [PATCH] It doesn't work that way either --- .travis.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 60f6662..fb99c2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,11 @@ cache: directories: - $HOME/.m2/repository/org/bukkit/craftbukkit -before_install: # Wget BuildTools and run if cached folder not found - - if [ -d "$HOME/.m2/repository/org/bukkit/craftbukkit" ]; then exit 0; fi - - wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar - - java -jar BuildTools.jar +before_install: | # Wget BuildTools and run if cached folder not found + if [ ! -d "$HOME/.m2/repository/org/bukkit/craftbukkit/1.12-R0.1-SNAPSHOT" ]; then + wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar + java -jar BuildTools.jar --rev 1.12 + fi language: java jdk: