Skip to content

Commit

Permalink
continuous-build.sh: preserve the toolchain on broken build/test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamar committed Feb 5, 2017
1 parent 3c71412 commit 40077da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion continuous-build.sh
Expand Up @@ -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 ..
Expand Down Expand Up @@ -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

0 comments on commit 40077da

Please sign in to comment.