klayout/travis-build.sh

37 lines
603 B
Bash
Raw Normal View History

#!/bin/bash
set -e
export PING_SLEEP=30s
bash -c "while true; do echo -n '.'; sleep $PING_SLEEP; done" &
PING_LOOP_PID=$!
touch build.txt
2019-04-04 22:19:20 +02:00
# Configure ccache
mkdir -p ccache;
export CCACHE_DIR="`pwd`/ccache"
# Show ccache stats
echo "Cache stats:"
ccache -s
echo "build"
make build >> build.txt 2>&1 || tail -500 build.txt
echo "deploy"
make deploy >> build.txt 2>&1 || tail -500 build.txt
echo "test"
make test >> build.txt 2>&1 || tail -500 build.txt
echo "dropbox-deploy"
make dropbox-deploy
2019-04-04 22:19:20 +02:00
# Show ccache stats
echo "Cache stats:"
ccache -s
echo "build finished"
kill $PING_LOOP_PID
exit 0