diff options
author | eileencodes <eileencodes@gmail.com> | 2018-01-18 11:28:12 -0500 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2018-01-18 11:28:12 -0500 |
commit | 93d7b07549f446d6ed8449608142bbe5ff69be84 (patch) | |
tree | a2ce73966a919aea92545cac3dab37d6a05375ae /ci | |
parent | c046143408dac439ce3072ca748f7be60e1c741b (diff) | |
download | rails-93d7b07549f446d6ed8449608142bbe5ff69be84.tar.gz rails-93d7b07549f446d6ed8449608142bbe5ff69be84.tar.bz2 rails-93d7b07549f446d6ed8449608142bbe5ff69be84.zip |
Fix ActionView UJS build
The UJS build has been failing with Chrome failed to start. This commit
fixes it by adding the option `--no-sandbox`. Travis removed the sanbox
option which is why Chrome crashes.
Ref https://github.com/travis-ci/travis-ci/issues/8836
Example failure: https://travis-ci.org/rails/rails/jobs/330396750
Diffstat (limited to 'ci')
-rw-r--r-- | ci/qunit-selenium-runner.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ci/qunit-selenium-runner.rb b/ci/qunit-selenium-runner.rb index 3a58377d77..05bcab8cdb 100644 --- a/ci/qunit-selenium-runner.rb +++ b/ci/qunit-selenium-runner.rb @@ -6,6 +6,7 @@ require "chromedriver/helper" driver_options = Selenium::WebDriver::Chrome::Options.new driver_options.add_argument("--headless") driver_options.add_argument("--disable-gpu") +driver_options.add_argument("--no-sandbox") driver = ::Selenium::WebDriver.for(:chrome, options: driver_options) result = QUnit::Selenium::TestRunner.new(driver).open(ARGV[0], timeout: 60) |