Skip to content
Permalink
Browse files

Enable travis (#3)

  • Loading branch information...
AlanCrevon committed Apr 28, 2019
1 parent 80b9967 commit 49aba74812c54fee1c6489772be81b82da5aa4e7
Showing with 30 additions and 1 deletion.
  1. +23 −0 .travis.yml
  2. +7 −1 src/karma.conf.js
@@ -0,0 +1,23 @@
dist: trusty
sudo: false

language: node_js
node_js:
- '8'

addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable

cache:
directories:
- ./node_modules

install:
- npm install

script:
- npm run test -- --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox
@@ -1,7 +1,7 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
@@ -21,6 +21,12 @@ module.exports = function (config) {
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,

0 comments on commit 49aba74

Please sign in to comment.
You can’t perform that action at this time.