Skip to content

Commit

Permalink
Trying to fix travis Chrome support.
Browse files Browse the repository at this point in the history
  • Loading branch information
obuchtala committed Nov 27, 2015
1 parent a668c8a commit ea2224e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -3,3 +3,8 @@ node_js:
- "4"
- "0.12"
- "0.11"
before_script:
- 'export CHROME_BIN=chromium-browser'
- 'export DISPLAY=:99.0'
- 'sh -e /etc/init.d/xvfb start'
- 'npm install'
10 changes: 10 additions & 0 deletions karma.conf.js
Expand Up @@ -10,9 +10,19 @@ module.exports = function(config) {
'test/unit/**/*.test.js': ['browserify']
},
browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: true,
browserify: {
debug: true // include inline source maps
}
});

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

0 comments on commit ea2224e

Please sign in to comment.