Travis CI should also run tests on chrome

This commit is contained in:
Evert Timberg 2015-11-07 09:34:07 -05:00
parent 962b99e8d3
commit 679ac764b1
2 changed files with 15 additions and 2 deletions

View File

@ -4,6 +4,7 @@ node_js:
- "0.10"
before_install:
- "export CHROME_BIN=chromium-browser"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

View File

@ -1,7 +1,19 @@
module.exports = function(config) {
config.set({
var configuration = {
browsers: ['Firefox'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
frameworks: ['jasmine'],
reporters: ['progress', 'html'],
});
};
if (process.env.TRAVIS) {
configuration.browsers.push('Chrome_travis_ci');
}
config.set(configuration);
};