Files
Yogstation/tools/travis/before_build_byond.sh
Jordan Brown 283b548aa4 Adds deploy script. CI artifacts. Dependencies file (#39040)
Adds a simple file to create a work tree with only what's needed to RUN the
game.

.dmb/.rsc, _maps, strings, and some icons and sounds.

Makes the Dockerfile use it.

Also adds dependencies.sh which can serve as a single version source used by
all CI and utils.

Enables appveyor and artifacts, you can now download a .dmb deployment straight
from a PR or master commit.
2018-07-22 20:50:34 +02:00

32 lines
779 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 [ $BUILD_TESTING = true ]; then
python tools/travis/template_dm_generator.py
fi
source dependencies.sh
if [ -d "$HOME/BYOND/byond/bin" ] && grep -Fxq "${BYOND_MAJOR}.${BYOND_MINOR}" $HOME/BYOND/version.txt;
then
echo "Using cached directory."
else
echo "Setting up BYOND."
rm -rf "$HOME/BYOND"
mkdir -p "$HOME/BYOND"
cd "$HOME/BYOND"
curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
unzip byond.zip
rm byond.zip
cd byond
make here
echo "$BYOND_MAJOR.$BYOND_MINOR" > "$HOME/BYOND/version.txt"
cd ~/
fi