mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
We now run a php linter on the webhook We now combine and build all maps in the right build script Because only the byond build will use the maps this shouldn't run in the tools script file, this is only working because of the order the build scripts are run in the travis yml
31 lines
750 B
Bash
Executable File
31 lines
750 B
Bash
Executable File
#!/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;
|
|
echo "Combining maps for building"
|
|
if [ "$DM_MAPFILE" = "loadallmaps" ]; then
|
|
python tools/travis/template_dm_generator.py
|
|
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
|