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.
21 lines
379 B
Bash
21 lines
379 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 ""
|
|
echo "=================================="
|
|
echo " ✔ Build successful"
|
|
echo "=================================="
|