Skip to content

Instantly share code, notes, and snippets.

@skunkworker
Last active December 12, 2017 01:47
Show Gist options
  • Save skunkworker/605383bcb7a6b9b512969fff8bc91a10 to your computer and use it in GitHub Desktop.
Save skunkworker/605383bcb7a6b9b512969fff8bc91a10 to your computer and use it in GitHub Desktop.
Rails 5.1 system tests with Travis-ci.com
dist: trusty
before_script:
- wget http://chromedriver.storage.googleapis.com/2.34/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
- sh -e /etc/init.d/xvfb start
- sleep 3
sudo: required
language: ruby
rvm:
- 2.4.1
addons:
sources:
- google-chrome
apt:
packages:
- google-chrome-stable
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
- bundle exec rake test:system
@skunkworker
Copy link
Author

Updated for chromedriver 2.34 from 2.27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment