Fail the shell scripts if npm or bower fail

This commit is contained in:
Gaël Métais
2015-07-31 16:16:26 +02:00
parent c305cc2f7d
commit c8a29b4651
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ sudo chown $USER /space
cd /space
git clone https://github.com/gmetais/YellowLabTools.git --branch master
cd YellowLabTools
npm install
bower install --config.interactive=false --allow-root
npm install || exit 1
bower install --config.interactive=false --allow-root || exit 1
# Front-end compilation
grunt build
+2 -2
View File
@@ -12,9 +12,9 @@ git stash pop
# In case something was added in package.json or bower.json
rm -rf node_modules
npm install
npm install || exit 1
rm -rf bower_components
bower install --config.interactive=false --allow-root
bower install --config.interactive=false --allow-root || exit 1
# Front-end compilation
rm -rf front/build