This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 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.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
before_install :
Original file line number Diff line number Diff line change 1
1
#! /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.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e -x
Original file line number Diff line number Diff line change 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.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
# idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
@@ -67,6 +67,14 @@ function documentation_enforced {
67
67
fi
68
68
}
69
69
70
+ function style_and_lint_enforced {
71
+ if [ -x ./bin/rubocop ]; then
72
+ return 0
73
+ else
74
+ return 1
75
+ fi
76
+ }
77
+
70
78
function clone_repo {
71
79
if [ ! -d $1 ]; then # don't clone if the dir is already there
72
80
travis_retry git clone git://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH
@@ -142,3 +150,7 @@ function check_documentation_coverage {
142
150
end
143
151
"
144
152
}
153
+
154
+ function check_style_and_lint {
155
+ bin/rubocop lib
156
+ }
Original file line number Diff line number Diff line change 1
1
#! /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.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e -x
@@ -12,6 +12,10 @@ if documentation_enforced; then
12
12
check_documentation_coverage
13
13
fi
14
14
15
+ if style_and_lint_enforced; then
16
+ check_style_and_lint
17
+ fi
18
+
15
19
if is_mri; then
16
20
run_specs_one_by_one
17
21
run_spec_suite_for " rspec-core"
You can’t perform that action at this time.
0 commit comments