Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
More diagnostic output for asset scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Sep 30, 2015
1 parent 67de1c7 commit 3bc2b64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions ci/download-asset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ SUBTAG=$1
DESTDIR=$2
ZIPFILE=/tmp/$SUBTAG.zip

curl -s -S "jsil.org/ci/download.aspx?key=travisci&tag=$JSIL_STORAGE_TAG-$SUBTAG&password=$JSIL_STORAGE_PASSWORD" -o $ZIPFILE
unzip -q -o $ZIPFILE -d "$DESTDIR"
echo "Downloading $SUBTAG..."
curl -S "jsil.org/ci/download.aspx?key=travisci&tag=$JSIL_STORAGE_TAG-$SUBTAG&password=$JSIL_STORAGE_PASSWORD" -o "$ZIPFILE"
ls -la "$ZIPFILE"
echo "Unarchiving $SUBTAG..."
unzip -q -o "$ZIPFILE" -d "$DESTDIR"
rm -rf "$DESTDIR/$SUBTAG/$SUBTAG"
5 changes: 3 additions & 2 deletions ci/upload-asset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ SUBTAG=$1
SOURCEDIR=$2
ZIPFILE=/tmp/$SUBTAG.zip

rm "$ZIPFILE"
echo "Archiving $SUBTAG..."
zip -3 -r -q "$ZIPFILE" "$SOURCEDIR"
echo "Uploading $SUBTAG..."
rm $ZIPFILE
zip -3 -r -q $ZIPFILE "$SOURCEDIR"
curl -S -X POST "jsil.org/ci/upload.aspx?key=travisci&tag=$JSIL_STORAGE_TAG-$SUBTAG&password=$JSIL_STORAGE_PASSWORD" --data-binary "@$ZIPFILE"
echo "Done uploading $SUBTAG."

0 comments on commit 3bc2b64

Please sign in to comment.