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

Updates from rspec-dev (2014-06-06) #77

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
# This file was generated on 2014-06-06T11:34:33-07:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

before_install:
Expand Down
2 changes: 1 addition & 1 deletion script/clone_all_rspec_repos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
# This file was generated on 2014-06-06T11:34:33-07:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e -x
Expand Down
14 changes: 13 additions & 1 deletion script/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
# This file was generated on 2014-06-06T11:34:33-07:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
Expand Down Expand Up @@ -67,6 +67,14 @@ function documentation_enforced {
fi
}

function style_and_lint_enforced {
if [ -x ./bin/rubocop ]; then
return 0
else
return 1
fi
}

function clone_repo {
if [ ! -d $1 ]; then # don't clone if the dir is already there
travis_retry git clone git://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH
Expand Down Expand Up @@ -142,3 +150,7 @@ function check_documentation_coverage {
end
"
}

function check_style_and_lint {
bin/rubocop lib
}
6 changes: 5 additions & 1 deletion script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2014-05-20T15:40:07+10:00 from the rspec-dev repo.
# This file was generated on 2014-06-06T11:34:33-07:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e -x
Expand All @@ -12,6 +12,10 @@ if documentation_enforced; then
check_documentation_coverage
fi

if style_and_lint_enforced; then
check_style_and_lint
fi

if is_mri; then
run_specs_one_by_one
run_spec_suite_for "rspec-core"
Expand Down