continuous-build.sh: preserve the toolchain on broken build/test
This commit is contained in:
parent
3c714125b0
commit
40077daa88
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue