Skip to content

Commit

Permalink
[rb] add IE testing to appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Mar 15, 2017
1 parent af52bf2 commit e8b6c60
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
16 changes: 15 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
shallow_clone: true
build: off
environment:
matrix:
- RUBY_VERSION: 22-x64
TASK: build
- RUBY_VERSION: 200-x64
TASK: //rb:ie-test
install:
- 'set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0'
- 'set PATH=%JAVA_HOME%;%PATH%'
- 'set RUBY_HOME=C:\Ruby22-x64\bin'
- 'set PATH=%RUBY_HOME%;%PATH%'
before_test:
- ruby -v
- gem -v
- bundle -v
- curl -fsS -o C:\Tools\WebDriver\IEServerDriver.zip http://selenium-release.storage.googleapis.com/3.1/IEDriverServer_Win32_3.1.0.zip
- 7z e C:\Tools\WebDriver\IEServerDriver.zip -oC:\Tools\WebDriver -aoa
- dir C:\Tools\WebDriver

test_script:
- cmd: './go build'
- cmd: scripts/appveyor/script.bat
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ def create_ff_esr_driver(opt = {})
WebDriver::Driver.for :firefox, opt
end

def create_ie_driver(opt = {})
opt[:desired_capabilities] ||= WebDriver::Remote::Capabilities.ie
opt[:desired_capabilities]['requireWindowFocus'] = true

WebDriver::Driver.for :ie, opt
end

def create_ff_nightly_driver(opt = {})
unless ENV['FF_NIGHTLY_BINARY']
raise StandardError, "ENV['FF_NIGHTLY_BINARY'] must be set to test Nightly Firefox"
Expand Down
1 change: 1 addition & 0 deletions scripts/appveyor/script.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./go %TASK%

0 comments on commit e8b6c60

Please sign in to comment.