fix karma.conf

This commit is contained in:
Jordan Baczuk 2019-09-25 16:25:32 -06:00
parent ad39c5d117
commit ee2518544c
2 changed files with 4 additions and 10 deletions

View File

@ -5,6 +5,7 @@ node_js:
sudo: false sudo: false
addons: addons:
firefox: "latest" firefox: "latest"
chrome: stable
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
@ -12,6 +13,8 @@ addons:
- build-essential - build-essential
env: env:
- CXX=g++ - CXX=g++
services:
- xvfb
notifications: notifications:
email: email:
on_success: never on_success: never

View File

@ -1,5 +1,3 @@
process.env.CHROME_BIN = "chromium-browser";
module.exports = function(config) { module.exports = function(config) {
config.set({ config.set({
@ -55,14 +53,7 @@ module.exports = function(config) {
// start these browsers // start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ["Chromium", "Firefox"], browsers: ["Chrome", "Firefox"],
customLaunchers: {
Chromium: {
base: "Chrome",
flags: ["--no-sandbox"],
},
},
// Continuous Integration mode // Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits // if true, Karma captures browsers, runs the tests and exits