From 5d7425a5c0f4bdddd207b574ea7bd63706c615f3 Mon Sep 17 00:00:00 2001 From: jonsadev Date: Mon, 21 Jan 2019 11:55:32 -0700 Subject: [PATCH] web-ui: Add test command to travis file Add ChromeHeadlessCI as custom launcher in karma config file --- .travis.yml | 2 +- web-ui/karma.conf.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 31f1496..0068c58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,4 +23,4 @@ matrix: - npm install -g @angular-devkit/build-angular - npm install script: - - ng build --prod + - npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI diff --git a/web-ui/karma.conf.js b/web-ui/karma.conf.js index 523fdad..7298e9e 100644 --- a/web-ui/karma.conf.js +++ b/web-ui/karma.conf.js @@ -27,6 +27,12 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], + customLaunchers: { + ChromeHeadlessCI: { + base: 'ChromeHeadless', + flags: ['--no-sandbox', '--disable-gpu'] + } + }, singleRun: false }); };