Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (47 sloc) 1.856 kb
bc99cfd Christian Meier added selenium test
authored
1 # -*- mode: ruby -*-
2ad93af Christian Meier first import
authored
2 source 'http://rubygems.org'
3
4 gem 'rails', '3.0.0'
5
6 # Bundle edge Rails instead:
7 # gem 'rails', :git => 'git://github.com/rails/rails.git'
8
9 gem 'sqlite3-ruby', :require => 'sqlite3' unless defined?(JRUBY_VERSION)
10 gem "activerecord-jdbc-adapter" if defined?(JRUBY_VERSION)
11 gem "jdbc-sqlite3", :require => false if defined?(JRUBY_VERSION)
12
13 # Use unicorn as the web server
14 # gem 'unicorn'
15
16 # Deploy with Capistrano
17 # gem 'capistrano'
18
19 # To use debugger
20 # gem 'ruby-debug'
21
22 # Bundle the extra gems:
23 # gem 'bj'
24 # gem 'nokogiri'
25 # gem 'sqlite3-ruby', :require => 'sqlite3'
26 # gem 'aws-s3', :require => 'aws/s3'
27
28 # Bundle gems for the local environment. Make sure to
29 # put test-only gems in this group so their generators
30 # and rake tasks are available in development mode:
31 # group :development, :test do
32 # gem 'webrat'
33 # end
34
35 gem 'enforce-ssl'
bc99cfd Christian Meier added selenium test
authored
36
37 if defined? MAVEN
38 properties({ "jruby.plugins.version" => '0.23.0-SNAPSHOT' })
39
40 #TODO allow :scope => :test, :classifier => "test", :exclusions => ['ant.ant']
41 #group :dev do
42 jar 'junit.junit', '3.8.2'
43 jar 'org.seleniumhq.selenium.client-drivers.selenium-java-client-driver', '1.0.1'
44 #end
45
46 plugin('org.mortbay.jetty.jetty-maven-plugin', '${jetty.version}') do |jetty|
47 jetty.with(:stopKey => 'foo', :stopPort => 9999)
48 jetty.in_phase('pre-integration-test').execute('run').with(:daemon => true)
49 jetty.in_phase('post-integration-test').execute('stop')
50 end
51
52 plugin('org.codehaus.mojo.selenium-maven-plugin', '1.1') do |selenium|
53 selenium.in_phase('pre-integration-test').execute("start-server").with({
54 :background => true, :firefoxProfileTemplate => "src/test/resources/selenium" })
55 end
56
57 plugin('surefire', '2.6') do |surefire|
58 surefire.with :skip => true
59 surefire.in_phase('integration-test').execute('test').with :skip => false
60 end
61 end
Something went wrong with that request. Please try again.