fixing chrome test support in travis

This commit is contained in:
Jason Salzman
2016-10-06 11:24:23 -07:00
parent 52dea8ebb5
commit 3e7ec0e727
2 changed files with 20 additions and 2 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
sudo: false
sudo: required
dist: trusty
language: node_js
node_js:
- "6"
@@ -19,6 +20,13 @@ before_install:
- gem update --system && gem install scss_lint -v 0.44.0
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
+11 -1
View File
@@ -3,6 +3,8 @@
var webpack = require('webpack')
var path = require('path')
var BROWSERS = (process.env.TRAVIS) ? ['Chrome_travis_ci', 'Firefox'] : ['Chrome', 'Firefox', 'Safari'];
module.exports = function(config) {
config.set({
@@ -104,9 +106,17 @@ module.exports = function(config) {
autoWatch: false,
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome', 'Firefox', 'Safari'],
browsers: BROWSERS,
// Continuous Integration mode