toaruos/util/build-travis.sh

41 lines
820 B
Bash
Raw Normal View History

2014-05-12 10:17:41 +04:00
#!/bin/bash
2015-12-16 10:42:23 +03:00
COOKIE=".2015-12-15-testing2.cookie"
unset CC
2015-12-16 11:06:37 +03:00
if [ ! -e "toolchain/local/$COOKIE" ]; then
echo "=== Cleaning any preexisting stuff... ==="
2015-12-16 10:27:38 +03:00
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=$!
2015-12-16 09:53:26 +03:00
echo "=== Begin Toolchain Build ==="
pushd toolchain
unset PKG_CONFIG_LIBDIR
./prepare.sh
./install.sh
date > ./local/$COOKIE
2015-12-16 09:53:26 +03:00
popd
echo "=== End Toolchain Build ==="
echo "=== Stopping watchdog ==="
kill $watchdog_pid
2015-12-16 09:53:26 +03:00
else
echo "=== Toolchain was cached. ==="
2015-07-26 03:09:16 +03:00
fi
2014-05-12 10:17:41 +04:00
. toolchain/activate.sh
make
2015-12-16 11:26:32 +03:00
echo "=== Running test suite. ==="
2014-05-13 07:30:49 +04:00
expect util/test-travis.exp