From d8978a344d9ce701942120fcfa1abc23ed6b7f0d Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 8 Jun 2016 14:06:44 +0200 Subject: [PATCH] Run tests before releasing to AWS --- res/aws_release.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/res/aws_release.sh b/res/aws_release.sh index d218443..ce422e1 100755 --- a/res/aws_release.sh +++ b/res/aws_release.sh @@ -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