Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 32690ab

Browse files
committed
Merge pull request #2027 from rspec/update-travis-build-scripts-2015-07-10-for-master
Updates from rspec-dev (2015-07-10)
2 parents be70624 + 12db0e0 commit 32690ab

File tree

8 files changed

+29
-16
lines changed

8 files changed

+29
-16
lines changed

.rubocop_rspec_base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
1+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# This file contains defaults for RSpec projects. Individual projects

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
1+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
language: ruby

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
1+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
version: "{build}"

script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
2+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/functions.sh

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
1+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -67,13 +67,22 @@ function run_specs_one_by_one {
6767

6868
function run_spec_suite_for {
6969
if [ ! -f ../$1/$SPECS_HAVE_RUN_FILE ]; then # don't rerun specs that have already run
70-
echo "Running specs for $1"
71-
pushd ../$1
72-
unset BUNDLE_GEMFILE
73-
bundle_install_flags=`cat .travis.yml | grep bundler_args | tr -d '"' | grep -o " .*"`
74-
travis_retry eval "bundle install $bundle_install_flags"
75-
run_specs_and_record_done
76-
popd
70+
if [ -d ../$1 ]; then
71+
echo "Running specs for $1"
72+
pushd ../$1
73+
unset BUNDLE_GEMFILE
74+
bundle_install_flags=`cat .travis.yml | grep bundler_args | tr -d '"' | grep -o " .*"`
75+
travis_retry eval "bundle install $bundle_install_flags"
76+
run_specs_and_record_done
77+
popd
78+
else
79+
echo ""
80+
echo "WARNING: The ../$1 directory does not exist. Usually the"
81+
echo "travis build cds into that directory and run the specs to"
82+
echo "ensure the specs still pass with your latest changes, but"
83+
echo "we are going to skip that step."
84+
echo ""
85+
fi;
7786
fi;
7887
}
7988

@@ -119,7 +128,6 @@ function check_style_and_lint {
119128
}
120129

121130
function run_all_spec_suites {
122-
fold "one-by-one specs" run_specs_one_by_one
123131
fold "rspec-core specs" run_spec_suite_for "rspec-core"
124132
fold "rspec-expectations specs" run_spec_suite_for "rspec-expectations"
125133
fold "rspec-mocks specs" run_spec_suite_for "rspec-mocks"

script/predicate_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
1+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
function is_mri {

script/run_build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
2+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e
@@ -22,6 +22,7 @@ if style_and_lint_enforced; then
2222
fi
2323

2424
if is_mri; then
25+
fold "one-by-one specs" run_specs_one_by_one
2526
run_all_spec_suites
2627
else
2728
echo "Skipping the rest of the build on non-MRI rubies"

script/travis_functions.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-05-05T17:56:25+10:00 from the rspec-dev repo.
1+
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# Taken from:
@@ -50,6 +50,8 @@ fold() {
5050
if [ -n "$TRAVIS" ]; then
5151
printf "travis_fold:start:%s\r\e[0m" "$name"
5252
travis_time_start
53+
else
54+
echo "============= Starting $name ==============="
5355
fi
5456

5557
"$@"
@@ -60,6 +62,8 @@ fold() {
6062
if [ "$status" -eq 0 ]; then
6163
if [ -n "$TRAVIS" ]; then
6264
printf "travis_fold:end:%s\r\e[0m" "$name"
65+
else
66+
echo "============= Ending $name ==============="
6367
fi
6468
else
6569
STATUS="$status"

0 commit comments

Comments
 (0)