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

Commit 11013d5

Browse files
committed
Merge pull request #2049 from rspec/update-travis-build-scripts-2015-08-01-for-master
Updates from rspec-dev (2015-08-01)
2 parents 782a8a2 + 85c4eed commit 11013d5

File tree

8 files changed

+55
-8
lines changed

8 files changed

+55
-8
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-07-10T08:35:29-07:00 from the rspec-dev repo.
1+
# This file was generated on 2015-08-01T02:04:28-04: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-07-10T08:35:29-07:00 from the rspec-dev repo.
1+
# This file was generated on 2015-08-01T02:04:28-04: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-07-10T08:35:29-07:00 from the rspec-dev repo.
1+
# This file was generated on 2015-08-01T02:04:28-04: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-07-10T08:35:29-07:00 from the rspec-dev repo.
2+
# This file was generated on 2015-08-01T02:04:28-04: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: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
1+
# This file was generated on 2015-08-01T02:04:28-04: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 )"
@@ -86,6 +86,51 @@ function run_spec_suite_for {
8686
fi;
8787
}
8888

89+
function check_binstubs {
90+
echo "Checking required binstubs"
91+
92+
local success=0
93+
local binstubs=""
94+
local gems=""
95+
96+
if [ ! -x ./bin/rspec ]; then
97+
binstubs="$binstubs bin/rspec"
98+
gems="$gems rspec-core"
99+
success=1
100+
fi
101+
102+
if [ ! -x ./bin/rake ]; then
103+
binstubs="$binstubs bin/rake"
104+
gems="$gems rake"
105+
success=1
106+
fi
107+
108+
if [ -d features ]; then
109+
if [ ! -x ./bin/cucumber ]; then
110+
binstubs="$binstubs bin/cucumber"
111+
gems="$gems cucumber"
112+
success=1
113+
fi
114+
fi
115+
116+
if [ $success -eq 1 ]; then
117+
echo
118+
echo "Missing binstubs:$binstubs"
119+
echo "Install missing binstubs using one of the following:"
120+
echo
121+
echo " # Create the missing binstubs"
122+
echo " $ bundle binstubs$gems"
123+
echo
124+
echo " # To binstub all gems"
125+
echo " $ bundle install --binstubs"
126+
echo
127+
echo " # To binstub all gems and avoid loading bundler"
128+
echo " $ bundle install --binstubs --standalone"
129+
fi
130+
131+
return $success
132+
}
133+
89134
function check_documentation_coverage {
90135
echo "bin/yard stats --list-undoc"
91136

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-07-10T08:35:29-07:00 from the rspec-dev repo.
1+
# This file was generated on 2015-08-01T02:04:28-04: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: 3 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-07-10T08:35:29-07:00 from the rspec-dev repo.
2+
# This file was generated on 2015-08-01T02:04:28-04: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
@@ -10,6 +10,8 @@ if [ -f script/custom_build_functions.sh ]; then
1010
source script/custom_build_functions.sh
1111
fi
1212

13+
fold "binstub check" check_binstubs
14+
1315
fold "specs" run_specs_and_record_done
1416
fold "cukes" run_cukes
1517

script/travis_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-07-10T08:35:29-07:00 from the rspec-dev repo.
1+
# This file was generated on 2015-08-01T02:04:28-04: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:

0 commit comments

Comments
 (0)