2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-17 15:25:50 +00:00
thumbsup/scripts/cibuild

27 lines
527 B
Bash
Executable File

#!/bin/bash
# Fail the build on any error
set -eou pipefail
trap failure ERR
function failure {
echo ""
echo "=================================="
echo " ✘ Build failed"
echo "=================================="
}
echo "Run unit tests"
npm test
echo "Verify lightgallery dependency is built in"
grep \"lightgallery\" package.json 1>/dev/null
echo "Comparing gallery snapshot"
scripts/verify
echo ""
echo "=================================="
echo " ✔ Build successful"
echo "=================================="