mirror of
https://github.com/encounter/react-add-to-calendar.git
synced 2026-07-10 21:18:44 -07:00
fixing chrome test support in travis
This commit is contained in:
+9
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user