openethereum/js-old/scripts/test.sh

16 lines
234 B
Bash
Raw Normal View History

2017-09-05 11:21:18 +02:00
#!/bin/bash
# change into the js directory (one down from scripts)
pushd `dirname $0`
cd ..
# run lint & tests and store the exit code
EXITCODE=0
npm run test || EXITCODE=1
# back to root
popd
# exit with exit code
exit $EXITCODE