Plan/scripts/prepareServerJars.sh
Rsl1122 ab3833df91 Travis configuration changes
Created bash scripts for different steps and added them as jobs for travis to execute.

Begun preparing system testing: Goal is enabling actual servers with the plugin to see if it enables
2018-11-12 15:46:41 +02:00

43 lines
1022 B
Bash

mkdir $HOME/servers
mkdir $HOME/servers/build
cd $HOME/servers
SPIGOT_FOUND=[[ -e spigot.jar ]]
CRAFTBUKKIT_FOUND=[[ -e craftbukkit.jar ]]
SPONGE_FOUND=[[ -e sponge.jar ]]
cd $HOME/servers/build
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
git config --global --unset core.autocrlf
if [ ! $SPIGOT_FOUND ]; then
echo "Building spigot 1.12.2"
java -jar BuildTools.jar --rev 1.12.2
cp spigot-1.12.2.jar ../spigot.jar
else
echo "Found spigot 1.12.2 jar"
fi
if [ ! $CRAFTBUKKIT_FOUND ]; then
echo "Building craftbukkit 1.8"
java -jar BuildTools.jar --rev 1.8
cp craftbukkit-1.8.jar ../craftbukkit.jar
else
echo "Found craftbukkit 1.8 jar"
fi
if [ ! $SPONGE_FOUND ]; then
echo "Downloading sponge"
wget -O sponge.jar https://repo.spongepowered.org/maven/org/spongepowered/spongevanilla/1.12.2-7.1.4/spongevanilla-1.12.2-7.1.4.jar
cp sponge.jar ../sponge.jar
else
echo "Found sponge jar"
fi
cd $HOME/servers
rm -rf build
cd $HOME