File tree Expand file tree Collapse file tree 2 files changed +39
-5
lines changed
Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Original file line number Diff line number Diff line change 1+ # CircleCI Build yaml
2+ # General information
3+ general :
4+ branches :
5+ only :
6+ - master
7+
8+ # Define VM
9+ machine :
10+ # Timezone
11+ timezone : America/Los_Angeles
12+
13+ # Dependencies needed by run-all.sh
14+ dependencies :
15+ override :
16+ - sudo apt-get update; sudo apt-get install realpath
17+
18+ # Test
19+ test :
20+ override :
21+ # Ruby 2.2.5
22+ - rvm-exec 2.2.5 ./spec/run-all.sh
23+ # Ruby 2.3.1
24+ - rvm-exec 2.3.1 ./spec/run-all.sh
25+
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,7 +23,12 @@ export TRANSLATE_KEY="$TRANSLATE_API_KEY"
2523
2624script_directory=" $( dirname " ` realpath $0 ` " ) "
2725repo_directory=" $( dirname $script_directory ) "
26+ status_return=0 # everything passed
27+
28+ # Print out Ruby version
29+ ruby --version
2830
31+ # Run Tets
2932for product in \
3033 bigquery \
3134 datastore \
@@ -39,6 +42,12 @@ for product in \
3942; do
4043 echo " [$product ]"
4144 cd " $repo_directory /$product /"
42- bundle install
43- bundle exec rspec --format documentation --fail-fast
45+ bundle install && bundle exec rspec --format documentation
46+
47+ # Check status of bundle exec rspec
48+ if [ $? != 0 ]; then
49+ status_return=1
50+ fi
4451done
52+
53+ exit $status_return
You can’t perform that action at this time.
0 commit comments