summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-07 14:51:51 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-28 13:41:06 +1000
commit7f4c37d95c3aef7d61e621c84e5d6114b0cabdcf (patch)
tree942bdd1473b381f75df5330f31c5228a21ccdbf7 /ci
parent0c5c3d7f429efd05194f6e4d24db74469d76a7e3 (diff)
downloadtalos-op-build-7f4c37d95c3aef7d61e621c84e5d6114b0cabdcf.tar.gz
talos-op-build-7f4c37d95c3aef7d61e621c84e5d6114b0cabdcf.zip
ci: Clear output directory at start of build
Clear the output directory before the start of the build instead of at the end. This leaves the output directory intact when an error occurs or if building a single platform. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/build-all-defconfigs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/build-all-defconfigs.sh b/ci/build-all-defconfigs.sh
index 92db7881..61c3bbfe 100755
--- a/ci/build-all-defconfigs.sh
+++ b/ci/build-all-defconfigs.sh
@@ -36,6 +36,7 @@ if [ -n "$DL_DIR" ]; then
fi
for i in ${DEFCONFIGS[@]}; do
+ rm -rf output/*
op-build $i
echo 'BR2_CCACHE=y' >> output/.config
echo "BR2_CCACHE_DIR=\"$CCACHE_DIR\"" >> output/.config
@@ -48,7 +49,6 @@ for i in ${DEFCONFIGS[@]}; do
mv output/images/* $1/$i-images/
mv output/.config $1/$i-images/.config
lsb_release -a > $1/$i-images/lsb_release
- rm -rf output/*
if [ $r -ne 0 ]; then
exit $r
fi
OpenPOWER on IntegriCloud