Hopefully found the final fix for the Travis/Browserstack local tunnel issues

This commit is contained in:
Jack Walker
2020-04-22 14:09:32 +10:00
parent 746ef4b40a
commit 4d8395eaff
2 changed files with 12 additions and 8 deletions

View File

@@ -13,24 +13,27 @@ before_script:
- RUBY_VERSION=/bin/bash rvm current
- sed -i -E 's/system\((.*?)\)/""/g' /home/travis/.rvm/gems/$RUBY_VERSION/gems/browserstack-local-1.3.0/lib/browserstack/local.rb
- yes | ./update-geoipdb
env:
- CONFIG_FILE=windows/windows_chrome_latest.config.yaml
jobs:
include:
- name: "Full Test Suite"
- name: "Full Test Suite 2.5.3"
rvm: 2.5.3
env: CONFIG_FILE=windows/windows_chrome_latest.config.yaml
script: bundle exec rake
- name: "Full Test Suite"
- name: "Full Test Suite 2.6.0"
rvm: 2.6.0
env: CONFIG_FILE=windows/windows_chrome_latest.config.yaml
script: bundle exec rake
- name: "Full Test Suite"
- name: "Full Test Suite 2.6.3"
rvm: 2.6.3
script: bundle exec rake
- name: "Full Test Suite 2.6.5"
rvm: 2.6.5
env: CONFIG_FILE=windows/windows_chrome_latest.config.yaml
script: bundle exec rake
- name: "Full Test Suite"
- name: "Full Test Suite 2.7.0"
rvm: 2.7.0
env: CONFIG_FILE=windows/windows_chrome_latest.config.yaml
script: bundle exec rake
script:
- bundle exec rspec --tag run_on_browserstack
addons:
apt:
packages:

View File

@@ -79,6 +79,7 @@ RSpec.configure do |config|
bs_local_args = { "key" => CONFIG['key'], "forcelocal" => true }
@bs_local.start(bs_local_args)
@caps["browserstack.local"] = true
@caps['browserstack.localIdentifier'] = ENV['BROWSERSTACK_LOCAL_IDENTIFIER']
end
@driver = Selenium::WebDriver.for(:remote,