continuous-build.sh: preserve the toolchain on broken build/test

This commit is contained in:
Giacomo Tesio 2017-02-05 03:14:01 +01:00
parent 3c714125b0
commit 40077daa88
1 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,14 @@
set -e set -e
function finish {
# ensure that we preserve the toolchain on broken build/test
if [ -f "$JEHANNE/hacking/cross/toolchain/bin/x86_64-jehanne-gcc" ]; then
mv $JEHANNE/hacking/cross/toolchain/* $JEHANNE/tmp/toolchain/
fi
}
trap finish EXIT
if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
cd `dirname $0` cd `dirname $0`
cd .. cd ..
@ -62,6 +70,5 @@ if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
if [ ! -d "$JEHANNE/tmp/toolchain" ]; then if [ ! -d "$JEHANNE/tmp/toolchain" ]; then
mkdir $JEHANNE/tmp/toolchain mkdir $JEHANNE/tmp/toolchain
fi fi
mv $JEHANNE/hacking/cross/toolchain/* $JEHANNE/tmp/toolchain/
fi fi
fi fi