dist: xenial services: - xvfb addons: sources: - google-chrome apt: packages: - google-chrome-stable language: ruby rvm: - 2.3.8 - 2.4.5 - 2.5.5 - 2.6.2 - ruby-head gemfile: - test/gemfiles/5.2.gemfile branches: only: - master before_install: - gem update --system - gem update bundler before_script: - wget http://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip - unzip chromedriver_linux64.zip - sudo apt-get install libnss3 - sudo apt-get --only-upgrade install google-chrome-stable - sudo cp chromedriver /usr/local/bin/. - sudo chmod +x /usr/local/bin/chromedriver - export DISPLAY=:99.0 - sleep 3 script: - bundle exec rake db:migrate - bundle exec rake test - SKIP_COV=true bundle exec rake test:system - bundle exec rubocop matrix: allow_failures: - rvm: ruby-head