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

Commit

Permalink
Adjust reports/docs upload
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Mar 12, 2015
1 parent 1a91431 commit df0ad03
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions gradle/upload/upload-application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ mkdir -p $REPODIR/build/upload/
# Gather Docs & Test Reports
PWD=`pwd`
cd $REPODIR/build
rm docs.zip 2> /dev/null || true
rm reports.zip 2> /dev/null || true
rm upload/docs.zip 2> /dev/null || true
rm upload/reports.zip 2> /dev/null || true

if [ -d docs ]; then
zip --recurse-paths --quiet docs.zip docs/
mv docs.zip $REPODIR/build/upload/
cd docs
zip --recurse-paths --quiet $REPODIR/build/upload/docs.zip .
cd ..
fi

if [ -d reports ]; then
zip --recurse-paths --quiet reports.zip reports/
mv reports.zip $REPODIR/build/upload/
cd reports
zip --recurse-paths --quiet $REPODIR/build/upload/reports.zip .
cd ..
fi

cd "$PWD"
Expand Down Expand Up @@ -80,3 +82,6 @@ upload_app "$file_reports" "reports" "$snapshot"
echo "Uploading DOCS: $(basename $file_docs) ..."
upload_app "$file_docs" "docs" "$snapshot"

echo ""
echo "DONE."

0 comments on commit df0ad03

Please sign in to comment.