Testing out travis changes

This commit is contained in:
Greg Cobb and JR Boyens
2013-07-18 15:30:04 -07:00
parent 821f13dff5
commit 0f803430e4
3 changed files with 11 additions and 2 deletions

View File

@@ -7,3 +7,9 @@ script: "DISPLAY=:99.0 bundle exec rake core_spec"
rvm:
- "1.9.3"
env:
- JASMINE_BROWSER=firefox
- JASMINE_BROWSER=chrome
- JASMINE_BROWSER=safari
- JASMINE_BROWSER=phantomjs

View File

@@ -1,6 +1,6 @@
source 'https://rubygems.org'
gem "rake"
gem "jasmine", :git => 'https://github.com/pivotal/jasmine-gem.git', :branch => '2_0'
gem "jasmine", :git => 'https://github.com/pivotal/jasmine-gem.git'
#gem "jasmine", path: "/Users/pivotal/workspace/jasmine-gem"
unless ENV["TRAVIS"]
group :debug do

View File

@@ -4,6 +4,9 @@ require 'jasmine'
Jasmine.load_configuration_from_yaml(File.join(Dir.pwd, 'spec', 'jasmine.yml'))
config = Jasmine.config
Jasmine.configure do |config|
config.browser = ENV.fetch('JASMINE_BROWSER', 'firefox')
end
server = Jasmine::Server.new(config.port, Jasmine::Application.app(config))
driver = Jasmine::SeleniumDriver.new(config.browser, "#{config.host}:#{config.port}/")
@@ -18,7 +21,7 @@ t.abort_on_exception = true
Jasmine::wait_for_listener(config.port, "jasmine server")
puts "jasmine server started."
reporter = Jasmine::Runners::ApiReporter.new(driver, config.result_batch_size)
reporter = Jasmine::Reporters::ApiReporter.new(driver, config.result_batch_size)
raw_results = Jasmine::Runners::HTTP.new(driver, reporter).run
results = Jasmine::Results.new(raw_results)