Travis update

This commit is contained in:
kamil.mysliwiec
2017-02-05 21:48:02 +01:00
parent 69f129217e
commit d365fc7b46
2 changed files with 19 additions and 3 deletions

View File

@@ -2,8 +2,13 @@ language: node_js
node_js:
- "6"
- "7"
before_script:
- 'export CHROME_BIN=chromium-browser'
- 'export DISPLAY=:99.0'
- 'sh -e /etc/init.d/xvfb start'
- 'npm install -g bower karma grunt-cli jshint'
- 'npm install'
- 'bower install'
script:
- npm run lint
- npm test
- npm run test:cov
- npm run compile
- npm run build

View File

@@ -14,5 +14,16 @@ module.exports = function (config) {
'tests.webpack.js': [ 'webpack' ]
},
webpack: webpackConfig,
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: true
});
if(process.env.TRAVIS){
config.browsers = ['Chrome_travis_ci'];
}
};