mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Refactors travis building
Tools (tgui and changelog) are split out into their own build and are not installed/built in the standard per map build, this should give developers better visibility on if it's a tool breakage, or their code is faulty This also moves most of the travis related scripts into a single folder this is entirely for sanity reasons, they've also all be made user executeable
This commit is contained in:
26
tools/travis/before_build_byond.sh
Executable file
26
tools/travis/before_build_byond.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
#If this is the build tools step, we do not bother to install/build byond
|
||||
if [ "$BUILD_TOOLS" = true ]; then
|
||||
exit 0
|
||||
fi;
|
||||
|
||||
if [ -d "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin" ];
|
||||
then
|
||||
echo "Using cached directory."
|
||||
exit 0
|
||||
else
|
||||
echo "Setting up BYOND."
|
||||
mkdir -p "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}"
|
||||
cd "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}"
|
||||
curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
|
||||
unzip byond.zip
|
||||
cd byond
|
||||
make here
|
||||
cd ~/
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#some variable not set correctly, panic
|
||||
exit 1
|
||||
Reference in New Issue
Block a user