Skip to content

Allow running custom additional specs in each repo #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 5, 2016
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 Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ task :version_stats, :commit_ranges do |t, args|
end

def assert_clean_git_status(name)
unless `git status` =~ /nothing to commit,? \(?working directory clean\)?/
unless `git status --porcelain`.empty?
abort "#{name} has uncommitted changes"
end
end
Expand Down
5 changes: 5 additions & 0 deletions travis/script/predicate_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ function rspec_support_compatible {
fi
}

function additional_specs_available {
type run_additional_specs > /dev/null 2>&1
return $?
}

function documentation_enforced {
if [ -x ./bin/yard ]; then
if is_mri_2plus; then
Expand Down
5 changes: 5 additions & 0 deletions travis/script/run_build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ fi
fold "binstub check" check_binstubs

fold "specs" run_specs_and_record_done

if additional_specs_available; then
fold "additional specs" run_additional_specs
fi

fold "cukes" run_cukes

if documentation_enforced; then
Expand Down