File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,49 @@ function run_spec_suite_for {
83
83
fi ;
84
84
}
85
85
86
+ function check_binstubs {
87
+ echo " Checking required binstubs"
88
+
89
+ local success=0
90
+ local binstubs=" "
91
+ local gems=" "
92
+
93
+ if [ ! -x ./bin/rspec ]; then
94
+ binstubs=" $binstubs bin/rspec"
95
+ gems=" $gems rspec-core"
96
+ success=1
97
+ fi
98
+
99
+ if [ ! -x ./bin/rake ]; then
100
+ binstubs=" $binstubs bin/rake"
101
+ gems=" $gems rake"
102
+ success=1
103
+ fi
104
+
105
+ if [ ! -x ./bin/cucumber ]; then
106
+ binstubs=" $binstubs bin/cucumber"
107
+ gems=" $gems cucumber"
108
+ success=1
109
+ fi
110
+
111
+ if [ $success -eq 1 ]; then
112
+ echo
113
+ echo " Missing binstubs:$binstubs "
114
+ echo " Install missing binstubs using one of the following:"
115
+ echo
116
+ echo " # Create the missing binstubs"
117
+ echo " $ bundle binstubs$gems "
118
+ echo
119
+ echo " # To binstub all gems"
120
+ echo " $ bundle install --binstubs"
121
+ echo
122
+ echo " # To binstub all gems and avoid loading bundler"
123
+ echo " $ bundle install --binstubs --standalone"
124
+ fi
125
+
126
+ return $success
127
+ }
128
+
86
129
function check_documentation_coverage {
87
130
echo " bin/yard stats --list-undoc"
88
131
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ if [ -f script/custom_build_functions.sh ]; then
7
7
source script/custom_build_functions.sh
8
8
fi
9
9
10
+ fold " binstub check" check_binstubs
11
+
10
12
fold " specs" run_specs_and_record_done
11
13
fold " cukes" run_cukes
12
14
You can’t perform that action at this time.
0 commit comments