File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ sudo : required
2+ dist : trusty
3+ language : node_js
4+ node_js :
5+ - ' 4.2'
6+
7+ addons :
8+ apt :
9+ sources :
10+ - google-chrome
11+ packages :
12+ - google-chrome-stable
13+ - google-chrome-beta
14+
15+ before_install :
16+ - export CHROME_BIN=chromium-browser
17+ - export DISPLAY=:99.0
18+ - sh -e /etc/init.d/xvfb start
19+
20+ before_script :
21+ - npm install -g angular-cli
22+ - npm install -g karma
23+ - npm install
24+ - ng build
25+
26+ script : karma start config/karma.conf.js --single-run
Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ module.exports = function (config) {
2222 angularCli : {
2323 environment : 'dev'
2424 } ,
25+ customLaunchers : {
26+ // chrome setup for travis CI using chromium
27+ Chrome_travis_ci : {
28+ base : 'Chrome' ,
29+ flags : [ ' — no-sandbox' ]
30+ }
31+ } ,
2532 reporters : [ 'progress' , 'kjhtml' ] ,
2633 port : 9876 ,
2734 colors : true ,
You can’t perform that action at this time.
0 commit comments