2018-10-02 22:41:08 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
export PING_SLEEP=30s
|
|
|
|
|
|
2019-04-05 18:47:06 +02:00
|
|
|
bash -c "while true; do find qt* | wc -l; sleep $PING_SLEEP; done" &
|
2018-10-02 22:41:08 +02:00
|
|
|
PING_LOOP_PID=$!
|
|
|
|
|
|
2018-10-03 23:35:35 +02:00
|
|
|
touch build.txt
|
2018-10-02 22:41:08 +02:00
|
|
|
|
2019-04-04 22:19:20 +02:00
|
|
|
# Configure ccache
|
|
|
|
|
mkdir -p ccache;
|
|
|
|
|
export CCACHE_DIR="`pwd`/ccache"
|
2019-04-05 00:53:54 +02:00
|
|
|
export QMAKE_CCACHE=1
|
2019-04-04 22:19:20 +02:00
|
|
|
|
|
|
|
|
# Show ccache stats
|
|
|
|
|
echo "Cache stats:"
|
|
|
|
|
ccache -s
|
|
|
|
|
|
2018-10-03 23:35:35 +02:00
|
|
|
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
|
2018-10-02 22:41:08 +02:00
|
|
|
|
2019-04-04 22:19:20 +02:00
|
|
|
# Show ccache stats
|
|
|
|
|
echo "Cache stats:"
|
|
|
|
|
ccache -s
|
|
|
|
|
|
2018-10-02 22:41:08 +02:00
|
|
|
echo "build finished"
|
|
|
|
|
|
|
|
|
|
kill $PING_LOOP_PID
|
|
|
|
|
|
|
|
|
|
exit 0
|