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
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
cd `dirname $0`
cd ..
@ -62,6 +70,5 @@ if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
if [ ! -d "$JEHANNE/tmp/toolchain" ]; then
mkdir $JEHANNE/tmp/toolchain
fi
mv $JEHANNE/hacking/cross/toolchain/* $JEHANNE/tmp/toolchain/
fi
fi