toaruos/util/build-travis.sh
2015-12-15 23:42:23 -08:00

41 lines
789 B
Bash
Executable File

#!/bin/bash
COOKIE=".2015-12-15-testing2.cookie"
unset CC
env
if [ ! -a "toolchain/local/$COOKIE" ]; then
echo "=== Cleaning any preexisting stuff... ==="
rm -fr toolchain/build
rm -fr toolchain/local
rm -fr toolchain/tarballs/*
echo "=== Starting watchdog ==="
(
while [ 1 == 1 ]; do
echo "..."
sleep 1m
done
) &
watchdog_pid=$!
echo "=== Begin Toolchain Build ==="
pushd toolchain
unset PKG_CONFIG_LIBDIR
./prepare.sh
./install.sh
date > ./local/$COOKIE
popd
echo "=== End Toolchain Build ==="
echo "=== Stopping watchdog ==="
kill $watchdog_pid
else
echo "=== Toolchain was cached. ==="
fi
. toolchain/activate.sh
make
expect util/test-travis.exp