Hi, I am attempting to use Bitbucket pipelines to run our Ruby Rspec/capaybara based specs.
I have the configuration working to the point where the tests are run, but I am having issues running chromedriver.
<span>Selenium::WebDriver::Error::UnknownError:</span><span> unknown error: Chrome failed to start: exited abnormally</span>
Those are the kinds of errors I am seeing.
I have seen this question posted:
https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-Pipelines-Selenium/qaq-p/641852
But I do not want to set up browserstack in this instance, - but simply run the tests with chromedriver.
My yml file looks as follows:
image: ruby:2.4.0
pipelines:
default:
- step:
services:
- mysql
caches:
- bundler
script: # Modify the commands below to build your repository.
- bundle install
- apt-get update
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get install -y nodejs
- npm install
- npm install chromedriver
- rails db:migrate RAILS_ENV=test
- rspec