Skip to content
Snippets Groups Projects
Commit c6abab4c authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge branch 'feature/ISTWCMS-5029-lkmorlan-rebuild-error-messages' into '3.0.x'

ISTWCMS-5029: Exit with non-zero status on error in build_gesso.sh

See merge request !90
parents 5f928d7a 916eae5c
No related branches found
No related tags found
1 merge request!90ISTWCMS-5029: Exit with non-zero status on error in build_gesso.sh
...@@ -26,6 +26,10 @@ if [[ -d gesso ]]; then ...@@ -26,6 +26,10 @@ if [[ -d gesso ]]; then
fi fi
git clone --branch $gesso_version https://git.uwaterloo.ca/drupal-org/gesso.git git clone --branch $gesso_version https://git.uwaterloo.ca/drupal-org/gesso.git
if [ "$?" != 0 ]; then
echo "Error: git clone failed"
exit 2;
fi
if [[ $build_option == 1 || $build_option == 3 ]]; then if [[ $build_option == 1 || $build_option == 3 ]]; then
...@@ -54,6 +58,10 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then ...@@ -54,6 +58,10 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then
echo "Running npm install ..." echo "Running npm install ..."
cd gesso cd gesso
npm install npm install
if [ "$?" != 0 ]; then
echo "Error: npm install failed"
exit 2;
fi
echo "Done npm install." echo "Done npm install."
echo "**************************************************************************************" echo "**************************************************************************************"
echo "" echo ""
...@@ -85,6 +93,10 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then ...@@ -85,6 +93,10 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then
echo "**************************************************************************************" echo "**************************************************************************************"
echo "Running gulp build ..." echo "Running gulp build ..."
gulp build gulp build
if [ "$?" != 0 ]; then
echo "Error: gulp build failed"
exit 2;
fi
cd .. cd ..
echo "Done running gulp build." echo "Done running gulp build."
echo "**************************************************************************************" echo "**************************************************************************************"
......
...@@ -4,4 +4,3 @@ details_summary: 'Details summary' ...@@ -4,4 +4,3 @@ details_summary: 'Details summary'
details_description: 'Details description' details_description: 'Details description'
details_content: |- details_content: |-
<p>Details content</p> <p>Details content</p>
svg_name: android svg_name: android
\ No newline at end of file
...@@ -15,4 +15,3 @@ rss_feed: true ...@@ -15,4 +15,3 @@ rss_feed: true
feed_icons: false feed_icons: false
title_prefix: 'false' title_prefix: 'false'
title_suffix: 'false' title_suffix: 'false'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment