Last active
December 12, 2017 01:47
-
-
Save skunkworker/605383bcb7a6b9b512969fff8bc91a10 to your computer and use it in GitHub Desktop.
Rails 5.1 system tests with Travis-ci.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated for chromedriver 2.34 from 2.27.