travis: do not keep prepared_image/*.img, to save space

There is limited disk space available on Travis-CI. Build product it
thrown away anyawy, so do not keep intermediate files (normally useful
to speedup next build).
This commit is contained in:
Marek Marczykowski-Górecki 2017-09-26 01:51:10 +02:00
parent 1d407d1fc5
commit bca3759c78
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -61,8 +61,13 @@ trap cleanup ERR
export IMG="qubeized_images/$NAME/root.img"
mkdir -p "qubeized_images/$NAME"
echo "--> Copying $CLEANIMG to $IMG..."
cp "$CLEANIMG" "$IMG" || exit 1
if [ "$TRAVIS" = "true" ]; then
echo "--> Moving $CLEANIMG to $IMG (save space on Travis-CI)..."
mv "$CLEANIMG" "$IMG" || exit 1
else
echo "--> Copying $CLEANIMG to $IMG..."
cp "$CLEANIMG" "$IMG" || exit 1
fi
echo "--> Mounting $IMG"
mkdir -p mnt