Skip to content

Commit

Permalink
initial recipes for CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Apr 9, 2012
1 parent a1aa06d commit 1e71698
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
29 changes: 29 additions & 0 deletions scrolls/capybara_webkit.rb
@@ -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?"
24 changes: 24 additions & 0 deletions scrolls/jenkins.rb
@@ -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?"
27 changes: 27 additions & 0 deletions scrolls/poltergeist.rb
@@ -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?"

0 comments on commit 1e71698

Please sign in to comment.