diff options
Diffstat (limited to 'scripts/deploy.sh')
| -rwxr-xr-x | scripts/deploy.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 63bd31c..0527505 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh | |||
| @@ -67,6 +67,7 @@ if [ "$VERIFY_ONLY" -eq 0 ]; then | |||
| 67 | RSYNC_FLAGS=( | 67 | RSYNC_FLAGS=( |
| 68 | -a --delay-updates --human-readable --chmod=D755,F644 | 68 | -a --delay-updates --human-readable --chmod=D755,F644 |
| 69 | --exclude=README.md --exclude=.gitignore | 69 | --exclude=README.md --exclude=.gitignore |
| 70 | --exclude=play/node_modules | ||
| 70 | ) | 71 | ) |
| 71 | 72 | ||
| 72 | if [[ "$TARGET" == *:* ]]; then | 73 | if [[ "$TARGET" == *:* ]]; then |
| @@ -160,6 +161,16 @@ for local in "${artifacts[@]}"; do | |||
| 160 | verified=$((verified + 1)) | 161 | verified=$((verified + 1)) |
| 161 | done | 162 | done |
| 162 | 163 | ||
| 164 | curl -fsSL --max-time 30 "$origin/play/" -o "$tmp/play.html" \ | ||
| 165 | || die "could not fetch the browser app at /play/" | ||
| 166 | grep -q 'app.js' "$tmp/play.html" || die "/play/ does not reference app.js" | ||
| 167 | for asset in app.js style.css; do | ||
| 168 | curl -fsSL --max-time 30 "$origin/play/$asset" -o "$tmp/$asset" \ | ||
| 169 | || die "could not fetch /play/$asset" | ||
| 170 | cmp -s "web/play/$asset" "$tmp/$asset" \ | ||
| 171 | || die "/play/$asset served from the site differs from the local file" | ||
| 172 | done | ||
| 173 | |||
| 163 | [ "$failed" -eq 0 ] || die "verification failed" | 174 | [ "$failed" -eq 0 ] || die "verification failed" |
| 164 | 175 | ||
| 165 | echo "==> $verified artifact(s) verified at $URL" | 176 | echo "==> $verified artifact(s) and the browser app verified at $URL" |
