Skip to content

Commit

Permalink
spec/runner: add mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Feb 5, 2014
1 parent d9f5a6b commit 8dd4374
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Expand Up @@ -30,6 +30,15 @@ env:
- SELENIUM_BROWSER=ie SELENIUM_VERSION=10
- SELENIUM_BROWSER=ie SELENIUM_VERSION=11

- SELENIUM_BROWSER=ipad SELENIUM_DEVICE="iPad 2 (5.0)"
- SELENIUM_BROWSER=iphone SELENIUM_DEVICE="iPhone 4S"
- SELENIUM_BROWSER=iphone SELENIUM_DEVICE="iPhone 5"
- SELENIUM_BROWSER=iphone SELENIUM_DEVICE="iPhone 5S"

- SELENIUM_BROWSER=android SELENIUM_DEVICE="Samsung Galaxy Nexus"
- SELENIUM_BROWSER=android SELENIUM_DEVICE="Motorola Razr Maxx HD"
- SELENIUM_BROWSER=android SELENIUM_DEVICE="LG Nexus 4"

- SELENIUM_BROWSER=chrome SELENIUM_VERSION=30
- SELENIUM_BROWSER=chrome SELENIUM_VERSION=31

Expand Down
1 change: 1 addition & 0 deletions spec/runner.rb
Expand Up @@ -24,6 +24,7 @@
cap['platform'] = ENV['SELENIUM_PLATFORM'] || 'ANY'
cap['browser'] = ENV['SELENIUM_BROWSER'] || 'chrome'
cap['browser_version'] = ENV['SELENIUM_VERSION'] if ENV['SELENIUM_VERSION']
cap['device'] = ENV['SELENIUM_DEVICE'] if ENV['SELENIUM_DEVICE']

cap['browserstack.tunnelIdentifier'] = ENV['TRAVIS_JOB_ID']
cap['browserstack.tunnel'] = true
Expand Down

0 comments on commit 8dd4374

Please sign in to comment.