Skip to content

Commit

Permalink
Update coverage reporting for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Jun 24, 2017
1 parent 9e7cb18 commit b5f2ef6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ before_script:

script:
- ng lint
- ng test --no-watch --code-coverage
- npm run test-cover
- npm run autoe2e

after_success:
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function (config) {
'text/x-typescript': ['ts','tsx']
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
reports: ['lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
angularCli: {
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"ng": "ng",
"start": "ng serve",
"lint": "tslint \"src/**/*.ts\"",
"coveralls": "cat ./coverage/coverage.lcov | ./node_modules/coveralls/bin/coveralls.js",
"codacy": "cat ./coverage/coverage.lcov | ./node_modules/.bin/codacy-coverage -p .",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"codacy": "cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage -p .",
"test": "ng test",
"test-cover": "rm -rf ./coverage && ng test --no-watch --code-coverage",
"pree2e": "webdriver-manager update --gecko false",
"autoe2e": "concurrently -k -s first -p name -n \"ngs,e2e\" \"ng serve\" \"npm run safee2e\"",
"safee2e": "wait-on -t 60000 -l http-get://localhost:4200 && npm run e2e",
"e2e": "protractor"
"e2e": "protractor",
"reinstall": "rm -rf ./node_modules && npm install"
},
"private": true,
"dependencies": {
Expand All @@ -39,8 +41,10 @@
"@angular/compiler-cli": "^4.0.0",
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60",
"codacy-coverage": "^2.0.2",
"codelyzer": "~2.0.0",
"concurrently": "^3.4.0",
"coveralls": "^2.13.1",
"jasmine-core": "~2.5.2",
"jasmine-spec-reporter": "~3.2.0",
"karma": "~1.4.1",
Expand Down

0 comments on commit b5f2ef6

Please sign in to comment.