diff --git a/.travis.yml b/.travis.yml index ba19bd3..c8d709b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,10 @@ language: node_js node_js: - "6" before_script: - - "export DISPLAY=:99.0" + - export CHROME_BIN=chromium-browser + - export DISPLAY=:99.0 - "sh -e /etc/init.d/xvfb start" - sleep 3 addons: chrome: stable -script: "./node_modules/karma/bin/karma start test/karma.conf.js --browsers Chrome --single-run --no-auto-watch --capture-timeout 300000" +script: "./node_modules/karma/bin/karma start test/karma.conf.js --browsers Chrome_travis_ci --single-run --no-auto-watch --capture-timeout 300000" diff --git a/test/karma.conf.js b/test/karma.conf.js index 50c93e2..78c21bc 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -103,6 +103,12 @@ module.exports = function (config) { // enable / disable watching file and executing tests whenever any file changes autoWatch: true, + customLaunchers: { + Chrome_travis_ci: { + base: 'Chrome', + flags: ['--no-sandbox'] + } + }, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher