Run tests before releasing to AWS

This commit is contained in:
Tankred Hase 2016-06-08 14:06:44 +02:00
parent b5fb5331fc
commit d8978a344d

View File

@ -15,6 +15,14 @@ git branch -D release/$1
git checkout -b release/$1
git merge master --no-edit
# abort if tests fail
set -e
# build and test
rm -rf node_modules
npm install
npm test
# install only production dependencies
rm -rf node_modules/
npm install --production