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

Commit 094819a

Browse files
committed
Updated travis build scripts (from rspec-dev)
1 parent 782a8a2 commit 094819a

File tree

8 files changed

+53
-8
lines changed

8 files changed

+53
-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-01T00:43:51-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-01T00:43:51-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-01T00:43:51-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-01T00:43:51-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: 44 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-01T00:43:51-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,49 @@ 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 [ ! -x ./bin/cucumber ]; then
109+
binstubs="$binstubs bin/cucumber"
110+
gems="$gems cucumber"
111+
success=1
112+
fi
113+
114+
if [ $success -eq 1 ]; then
115+
echo
116+
echo "Missing binstubs:$binstubs"
117+
echo "Install missing binstubs using one of the following:"
118+
echo
119+
echo " # Create the missing binstubs"
120+
echo " $ bundle binstubs$gems"
121+
echo
122+
echo " # To binstub all gems"
123+
echo " $ bundle install --binstubs"
124+
echo
125+
echo " # To binstub all gems and avoid loading bundler"
126+
echo " $ bundle install --binstubs --standalone"
127+
fi
128+
129+
return $success
130+
}
131+
89132
function check_documentation_coverage {
90133
echo "bin/yard stats --list-undoc"
91134

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-01T00:43:51-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-01T00:43:51-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-01T00:43:51-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)