File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,22 @@ function run_specs_one_by_one {
64
64
65
65
function run_spec_suite_for {
66
66
if [ ! -f ../$1 /$SPECS_HAVE_RUN_FILE ]; then # don't rerun specs that have already run
67
- echo " Running specs for $1 "
68
- pushd ../$1
69
- unset BUNDLE_GEMFILE
70
- bundle_install_flags=` cat .travis.yml | grep bundler_args | tr -d ' "' | grep -o " .*" `
71
- travis_retry eval " bundle install $bundle_install_flags "
72
- run_specs_and_record_done
73
- popd
67
+ if [ -d ../$1 ]; then
68
+ echo " Running specs for $1 "
69
+ pushd ../$1
70
+ unset BUNDLE_GEMFILE
71
+ bundle_install_flags=` cat .travis.yml | grep bundler_args | tr -d ' "' | grep -o " .*" `
72
+ travis_retry eval " bundle install $bundle_install_flags "
73
+ run_specs_and_record_done
74
+ popd
75
+ else
76
+ echo " "
77
+ echo " WARNING: The ../$1 directory does not exist. Usually the"
78
+ echo " travis build cds into that directory and run the specs to"
79
+ echo " ensure the specs still pass with your latest changes, but"
80
+ echo " we are going to skip that step."
81
+ echo " "
82
+ fi ;
74
83
fi ;
75
84
}
76
85
@@ -116,7 +125,6 @@ function check_style_and_lint {
116
125
}
117
126
118
127
function run_all_spec_suites {
119
- fold " one-by-one specs" run_specs_one_by_one
120
128
fold " rspec-core specs" run_spec_suite_for " rspec-core"
121
129
fold " rspec-expectations specs" run_spec_suite_for " rspec-expectations"
122
130
fold " rspec-mocks specs" run_spec_suite_for " rspec-mocks"
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ if style_and_lint_enforced; then
19
19
fi
20
20
21
21
if is_mri; then
22
+ fold " one-by-one specs" run_specs_one_by_one
22
23
run_all_spec_suites
23
24
else
24
25
echo " Skipping the rest of the build on non-MRI rubies"
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ fold() {
47
47
if [ -n " $TRAVIS " ]; then
48
48
printf " travis_fold:start:%s\r\e[0m" " $name "
49
49
travis_time_start
50
+ else
51
+ echo " ============= Starting $name ==============="
50
52
fi
51
53
52
54
" $@ "
@@ -57,6 +59,8 @@ fold() {
57
59
if [ " $status " -eq 0 ]; then
58
60
if [ -n " $TRAVIS " ]; then
59
61
printf " travis_fold:end:%s\r\e[0m" " $name "
62
+ else
63
+ echo " ============= Ending $name ==============="
60
64
fi
61
65
else
62
66
STATUS=" $status "
You can’t perform that action at this time.
0 commit comments