Skip to content

Commit fddc61c

Browse files
committed
Merge pull request #135 from rspec/fix-binstub-check
Only run cucumber check when there are features
2 parents 5098f79 + 6bfb0b1 commit fddc61c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

travis/script/functions.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ function check_binstubs {
102102
success=1
103103
fi
104104

105-
if [ ! -x ./bin/cucumber ]; then
106-
binstubs="$binstubs bin/cucumber"
107-
gems="$gems cucumber"
108-
success=1
105+
if [ -d features ]; then
106+
if [ ! -x ./bin/cucumber ]; then
107+
binstubs="$binstubs bin/cucumber"
108+
gems="$gems cucumber"
109+
success=1
110+
fi
109111
fi
110112

111113
if [ $success -eq 1 ]; then

0 commit comments

Comments
 (0)