Configure Travis CI to use Chrome addon, install ChromeDriver

This commit is contained in:
Angel Perez
2018-03-07 16:15:33 -04:00
parent 0bf4afe8bc
commit 6a55b720b8

View File

@@ -1,11 +1,18 @@
language: ruby language: ruby
addons: addons:
postgresql: '9.4' postgresql: '9.4'
chrome: stable
rvm: rvm:
- 2.3.2 - 2.3.2
cache: bundler cache: bundler
bundler_args: --without development bundler_args: --without development
before_script: before_script:
- wget -N https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- for i in config/*.example; do cp "$i" "${i/.example}"; done - for i in config/*.example; do cp "$i" "${i/.example}"; done
- bundle exec rake db:setup - bundle exec rake db:setup
script: script: