Skip to content

Commit

Permalink
PLANET-5484 Sanity check on zip file size
Browse files Browse the repository at this point in the history
  • Loading branch information
Inwerpsel committed Sep 30, 2020
1 parent 5af0cb2 commit ba92fc4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,13 @@ jobs:
name: "Create zip file"
command: zip -r /tmp/workspace/planet4-master-theme.zip . -x "node_modules/*"
- run:
name: "Zip file size"
command: ls -lh /tmp/workspace/planet4-master-theme.zip
name: "Zip file size sanity check"
command: |
ls -lh /tmp/workspace/planet4-master-theme.zip
if [ $(wc -c </tmp/workspace/planet4-master-theme.zip) -ge 5000000 ]; then
echo "Zip file size exceeds 5MB, probably something went wrong."
exit 1
fi
- run:
name: "Get upload url for this tag"
command: |
Expand Down

0 comments on commit ba92fc4

Please sign in to comment.