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

Commit 1a03918

Browse files
committed
Merge pull request #77 from rspec/update-travis-build-scripts-2014-06-06-for-master
Updates from rspec-dev (2014-06-06)
2 parents c294d85 + df1a44c commit 1a03918

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.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 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
1+
# This file was generated on 2014-06-06T11:34:33-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
before_install:

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 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
2+
# This file was generated on 2014-06-06T11:34:33-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 -x

script/functions.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
1+
# This file was generated on 2014-06-06T11:34:33-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
# idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
@@ -67,6 +67,14 @@ function documentation_enforced {
6767
fi
6868
}
6969

70+
function style_and_lint_enforced {
71+
if [ -x ./bin/rubocop ]; then
72+
return 0
73+
else
74+
return 1
75+
fi
76+
}
77+
7078
function clone_repo {
7179
if [ ! -d $1 ]; then # don't clone if the dir is already there
7280
travis_retry git clone git://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH
@@ -142,3 +150,7 @@ function check_documentation_coverage {
142150
end
143151
"
144152
}
153+
154+
function check_style_and_lint {
155+
bin/rubocop lib
156+
}

script/run_build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
2+
# This file was generated on 2014-06-06T11:34:33-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 -x
@@ -12,6 +12,10 @@ if documentation_enforced; then
1212
check_documentation_coverage
1313
fi
1414

15+
if style_and_lint_enforced; then
16+
check_style_and_lint
17+
fi
18+
1519
if is_mri; then
1620
run_specs_one_by_one
1721
run_spec_suite_for "rspec-core"

0 commit comments

Comments
 (0)