jam-cloud/jam-ui/node_modules/progressbar.js/tools/test.sh

15 lines
282 B
Bash
Executable File

#!/bin/bash
# NOTE: Run this only from project root!
# Run all commands and if one fails, exit non-zero return code
EXIT_STATUS=0
echo -e "\n---- Linting code..\n"
npm run lint || EXIT_STATUS=$?
echo -e "\n---- Running tests..\n"
grunt test || EXIT_STATUS=$?
exit $EXIT_STATUS