mirror of https://github.com/thumbsup/thumbsup
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
527 B
Bash
27 lines
527 B
Bash
#!/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 "=================================="
|