Run tests before releasing to AWS
This commit is contained in:
parent
b5fb5331fc
commit
d8978a344d
@ -15,6 +15,14 @@ git branch -D release/$1
|
|||||||
git checkout -b release/$1
|
git checkout -b release/$1
|
||||||
git merge master --no-edit
|
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
|
# install only production dependencies
|
||||||
rm -rf node_modules/
|
rm -rf node_modules/
|
||||||
npm install --production
|
npm install --production
|
||||||
|
Loading…
Reference in New Issue
Block a user