Skip to content
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

ruby 2.6.5 in test matrix #70

Closed
wants to merge 7 commits into from
Closed
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
79 changes: 7 additions & 72 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@ sudo: false
language: ruby

before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

- export DISPLAY=:99.0
services:
- xvfb
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.6
- 2.3.3
- 2.4.0
- 2.6.5

jdk:
- oraclejdk7
- oraclejdk9

gemfile:
- Gemfile
- gemfiles/1.8.7.gemfile
- gemfiles/1.9.3.gemfile
- gemfiles/2.0.0.gemfile

env:
- NO_CUCUMBER=true
Expand All @@ -30,67 +22,10 @@ env:

matrix:
exclude:
- rvm: 1.8.7
gemfile: Gemfile
- rvm: 1.8.7
gemfile: gemfiles/1.9.3.gemfile
- rvm: 1.8.7
gemfile: gemfiles/2.0.0.gemfile
- rvm: 1.8.7
env: NO_CUCUMBER=false

- rvm: 1.9.3
gemfile: Gemfile
- rvm: 1.9.3
gemfile: gemfiles/1.8.7.gemfile
- rvm: 1.9.3
gemfile: gemfiles/2.0.0.gemfile
- rvm: 1.9.3
env: NO_CUCUMBER=true

- rvm: 2.0.0
gemfile: Gemfile
- rvm: 2.0.0
gemfile: gemfiles/1.8.7.gemfile
- rvm: 2.0.0
gemfile: gemfiles/1.9.3.gemfile
- rvm: 2.0.0
env: NO_CUCUMBER=true

- rvm: 2.1.10
gemfile: gemfiles/1.8.7.gemfile
- rvm: 2.1.10
gemfile: gemfiles/1.9.3.gemfile
- rvm: 2.1.10
gemfile: gemfiles/2.0.0.gemfile
- rvm: 2.1.10
env: NO_CUCUMBER=true

- rvm: 2.2.6
gemfile: gemfiles/1.8.7.gemfile
- rvm: 2.2.6
gemfile: gemfiles/1.9.3.gemfile
- rvm: 2.2.6
gemfile: gemfiles/2.0.0.gemfile
- rvm: 2.2.6
env: NO_CUCUMBER=true

- rvm: 2.3.3
gemfile: gemfiles/1.8.7.gemfile
- rvm: 2.3.3
gemfile: gemfiles/1.9.3.gemfile
- rvm: 2.3.3
gemfile: gemfiles/2.0.0.gemfile
- rvm: 2.3.3
- rvm: 2.4.0
env: NO_CUCUMBER=true

- rvm: 2.4.0
gemfile: gemfiles/1.8.7.gemfile
- rvm: 2.4.0
gemfile: gemfiles/1.9.3.gemfile
- rvm: 2.4.0
gemfile: gemfiles/2.0.0.gemfile
- rvm: 2.4.0
- rvm: 2.6.5
env: NO_CUCUMBER=true

branches:
Expand Down
16 changes: 15 additions & 1 deletion features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require 'sinatra/base'
require 'capybara/cucumber'
require 'rspec-html-matchers'
require 'webdrivers'

World RSpecHtmlMatchers

Expand All @@ -14,7 +15,20 @@ class SimpleApp < Sinatra::Base
set :public_folder, $ASSETS_DIR
end

Capybara.default_driver = :selenium
Capybara.register_driver :headless_chrome do |app|
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--headless')
options.add_argument('--disable-gpu')
options.add_argument('--window-size=800,600')

Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end

Capybara.configure do |config|
config.default_max_wait_time = 15
config.default_driver = :headless_chrome
end
# Capybara.default_driver = :selenium
Capybara.app = SimpleApp

Before do
Expand Down
3 changes: 2 additions & 1 deletion rspec-html-matchers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ DESC
s.add_development_dependency 'simplecov', '~> 0'
s.add_development_dependency 'cucumber', '~> 1'
s.add_development_dependency 'capybara', '~> 2'
s.add_development_dependency 'selenium-webdriver', '~> 2'
s.add_development_dependency 'selenium-webdriver', '~> 3'
s.add_development_dependency 'sinatra', '~> 1'
s.add_development_dependency 'rake', '~> 10'
s.add_development_dependency 'travis-lint', '~> 1'
s.add_development_dependency 'yard'
s.add_development_dependency 'webdrivers'
end