File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /bin/bash
2-
3- set -e
1+ #! /bin/bash
42
53for required_variable in \
64 GOOGLE_CLOUD_PROJECT \
@@ -25,12 +23,13 @@ export TRANSLATE_KEY="$TRANSLATE_API_KEY"
2523
2624script_directory=" $( dirname " ` realpath $0 ` " ) "
2725repo_directory=" $( dirname $script_directory ) "
26+ return_status=0 # no failures
2827
2928for product in \
29+ logging \
3030 bigquery \
3131 datastore \
3232 language \
33- logging \
3433 pubsub \
3534 speech \
3635 storage \
@@ -40,6 +39,12 @@ for product in \
4039 echo " [$product ]"
4140 cd " $repo_directory /$product /"
4241 bundle install
43- # Continue to run if a failure occurs
44- bundle exec rspec --format documentation || true
42+ bundle exec rspec --format documentation
43+
44+ # Check for a spec failure
45+ if [ $? != 0 ]; then
46+ return_status=1
47+ fi
4548done
49+
50+ exit $return_status
You can’t perform that action at this time.
0 commit comments