Files
fulpstation/tools/travis/install_libmariadb.sh
Tad Hardesty e5ccafd0b0 Split Travis shell scripts by job (#44845)
Part one of some needful Travis cleanup.

    Split the different tasks into their own .sh files rather than doing many things per .sh file
    Use .travis.yml jobs list to select which tasks are run rather than setting environment variables which the shell scripts then check
    Moves the grep lints from running in both "Maps" and "Tests" jobs, and runs them in "Lints" job (formerly "Tools") instead
    Makes the check_filedirs.sh lint only run in the "Lints" job rather than in all three jobs.
    Removes the check that dependencies.sh matches Dockerfile since the former now pulls from the latter
    Uncache node_modules - npm ci is expected to trash this every time and warns when it already exists
    Uncache and remove the unnecessary fake MariaDB folder used when building BSQL, give it the real path instead
    Attempt to cache the BYOND-provided libmariadb (not sure if this works, will re-examine it in part two)

For part two I hope to switch to using rust_g and BSQL binaries from GitHub releases, and add SpacemanDMM's dreamchecker to the Lints job.
2019-07-03 19:37:06 +12:00

16 lines
556 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# get libmariadb, cache it so limmex doesn't get angery
if [ -f $HOME/libmariadb ]; then
#travis likes to interpret the cache command as it being a file for some reason
rm $HOME/libmariadb
fi
mkdir -p $HOME/libmariadb
if [ ! -f $HOME/libmariadb/libmariadb.so ]; then
wget http://www.byond.com/download/db/mariadb_client-2.0.0-linux.tgz
tar -xvf mariadb_client-2.0.0-linux.tgz
mv mariadb_client-2.0.0-linux/libmariadb.so $HOME/libmariadb/libmariadb.so
rm -rf mariadb_client-2.0.0-linux.tgz mariadb_client-2.0.0-linux
fi