diff --git a/.rubocop.yml b/.rubocop.yml index 31f3d614..e2a9ec80 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,8 @@ require: rubocop-rspec +Layout/EndOfLine: + EnforcedStyle: lf + Metrics/LineLength: Max: 120 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..ba6b613f --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,23 @@ +build: off +cache: + - vendor/bundle +environment: + matrix: + - RUBY_VERSION: 24 + RAKE_TASK: spec + - RUBY_VERSION: 24 + RAKE_TASK: rubocop + - RUBY_VERSION: 25 + RAKE_TASK: spec + - RUBY_VERSION: 26 + RAKE_TASK: spec +install: + - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH% + - bundle config --local path vendor/bundle + - bundle install +before_test: + - ruby -v + - gem -v + - bundle -v +test_script: + - bundle exec rake %RAKE_TASK% \ No newline at end of file diff --git a/webdrivers.gemspec b/webdrivers.gemspec index c1e622b4..a9d9a3f1 100644 --- a/webdrivers.gemspec +++ b/webdrivers.gemspec @@ -17,6 +17,7 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } s.require_paths = ['lib'] + s.add_development_dependency 'ffi', '~> 1.0' # For selenium-webdriver on Windows s.add_development_dependency 'rake', '~> 10.0' s.add_development_dependency 'rspec', '~> 3.0' s.add_development_dependency 'rubocop', '~>0.66'