Skip to content

Commit

Permalink
Cleaning up karma.conf.js for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
micjamking committed Mar 6, 2016
1 parent 31eb5c8 commit 3911ac7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ node_js:
- "node"
- "iojs"
before_script:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install -g grunt-cli
21 changes: 18 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Generated on Tue Feb 09 2016 15:58:33 GMT-0700 (MST)

module.exports = function(config) {
config.set({

var configuration = {

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '.',
Expand Down Expand Up @@ -73,6 +74,20 @@ module.exports = function(config) {

// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity
})
concurrency: Infinity,

// Custom Launchers
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
}
};

if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}

config.set(configuration);
}

0 comments on commit 3911ac7

Please sign in to comment.