Skip to content

Commit

Permalink
fix: travis ci chrome env
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Sep 4, 2017
1 parent 94e571b commit 4e56415
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
customLaunchers: {
ChromeTravisCi: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: false
});
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"clean": "rm -rf ./dist/",
"server": "cd dist && http-server",
"prod": "npm run clean && npm run build:prod && npm run server",
"ci": "npm run clean && ng lint && ng test --single-run --reporters spec && npm run build:travisci",
"ci": "npm run clean && ng lint && ng test --browser ChromeTravisCi --single-run --reporters spec && npm run build:travisci",
"release": "standard-version && git push --follow-tags origin master"
},
"private": true,
Expand Down

0 comments on commit 4e56415

Please sign in to comment.