Skip to content

Commit 76affdc

Browse files
author
Frank Natividad
committed
Reverted all changes done to run-all.sh
1 parent 131c4ec commit 76affdc

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

spec/run-all.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
for required_variable in \
46
GOOGLE_CLOUD_PROJECT \
57
GOOGLE_APPLICATION_CREDENTIALS \
@@ -23,13 +25,12 @@ export TRANSLATE_KEY="$TRANSLATE_API_KEY"
2325

2426
script_directory="$(dirname "`realpath $0`")"
2527
repo_directory="$(dirname $script_directory)"
26-
return_status=0 # no failures
2728

2829
for product in \
29-
logging \
3030
bigquery \
3131
datastore \
3232
language \
33+
logging \
3334
pubsub \
3435
speech \
3536
storage \
@@ -39,12 +40,5 @@ for product in \
3940
echo "[$product]"
4041
cd "$repo_directory/$product/"
4142
bundle install
42-
bundle exec rspec --format documentation
43-
44-
# Check for a spec failure
45-
if [ $? != 0 ]; then
46-
return_status=1
47-
fi
43+
bundle exec rspec --format documentation --fail-fast
4844
done
49-
50-
exit $return_status

0 commit comments

Comments
 (0)