Skip to content

Commit c0ea244

Browse files
committed
Allow running custom additional specs in each repo
This is for running example_app specs in rspec-rails repo: * rspec/rspec-rails#1710 * rspec/rspec-rails#1680
1 parent 8b5fee7 commit c0ea244

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

travis/script/predicate_functions.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ function rspec_support_compatible {
6262
fi
6363
}
6464

65+
function additional_specs_available {
66+
type run_additional_specs > /dev/null 2>&1
67+
return $?
68+
}
69+
6570
function documentation_enforced {
6671
if [ -x ./bin/yard ]; then
6772
if is_mri_2plus; then

travis/script/run_build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ fi
1010
fold "binstub check" check_binstubs
1111

1212
fold "specs" run_specs_and_record_done
13+
14+
if additional_specs_available; then
15+
fold "additional specs" run_additional_specs
16+
fi
17+
1318
fold "cukes" run_cukes
1419

1520
if documentation_enforced; then

0 commit comments

Comments
 (0)