Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
gem_group :test do | ||
gem 'capybara-webkit' | ||
if config['headless_ci'] | ||
gem 'headless' | ||
end | ||
end | ||
|
||
after_bundler do | ||
# Capybara.javascript_driver = :webkit | ||
end | ||
|
||
__END__ | ||
|
||
name: Capybara Webkit | ||
description: | ||
author: drnic | ||
website: https://github.com/thoughtbot/capybara-webkit | ||
|
||
requires: [capybara] | ||
run_after: [capybara] | ||
run_before: [] | ||
|
||
category: testing | ||
# exclusive: | ||
|
||
config: | ||
- headless_ci: | ||
type: boolean | ||
prompt: "Headless mode for CI testing?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
gem 'jenkins' | ||
|
||
after_everything do | ||
public_repo = !config["github_private"] | ||
run "jenkins create . --scm #{@git_uri}#{' --public-scm' unless public_repo} --template rails3" | ||
end | ||
|
||
__END__ | ||
|
||
name: Jenkins | ||
description: | ||
author: drnic | ||
website: | ||
|
||
requires: [github] | ||
run_after: [github] | ||
|
||
category: testing | ||
exclusive: ci | ||
|
||
config: | ||
- jenkins_host: | ||
type: string | ||
prompt: "Jenkins CI host?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
gem 'poltergeist' | ||
|
||
after_bundler do | ||
append_to_file 'features/support/env.rb', <<-RUBY | ||
require 'capybara/poltergeist' | ||
Capybara.javascript_driver = :poltergeist | ||
RUBY | ||
end | ||
|
||
__END__ | ||
|
||
name: Poltergeist | ||
description: | ||
author: drnic | ||
website: | ||
|
||
requires: [] | ||
run_after: [capybara, cucumber] | ||
run_before: [] | ||
|
||
category: other # authentication, testing, persistence, javascript, css, services, deployment, and templating | ||
# exclusive: | ||
|
||
# config: | ||
# - foo: | ||
# type: boolean | ||
# prompt: "Is foo true?" |