UWNetworksLab / node-chrome-runner

A small library to run Chrome
Apache License 2.0
2 stars 2 forks source link

Support CI with travis #1

Open iislucas opened 9 years ago

iislucas commented 9 years ago

Chrome can be installed in travis using these commands in the before_install section:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable

This would then allow some simple tests like the ones presented in the README to be run in the CI mode.

willscott commented 9 years ago

Note that to support docker, which travis is moving towards, you'll need to use a somewhat uglier version: https://github.com/willscott/grunt-jasmine-chromeapp/blob/master/shippable.yml#L7-12