Skip to content

Commit

Permalink
fix(ci): added codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed May 8, 2018
1 parent 4aadf66 commit a8b79c6
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ jobs:
- node_modules
- run: npm run mosaic:build-release

test:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- run:
name: System information
command: |
echo "Node.js $(node -v)"
echo "npm $(npm -v)"
echo "Yarn v$(yarn --version)"
- run: npm install
- save_cache:
key: *cache_key
paths:
- node_modules
- run: npm run test:unit
- run: ./node_modules/.bin/codecov --token=$CODECOV_TOKEN

deploy:
<<: *job_defaults
steps:
Expand All @@ -48,7 +68,10 @@ workflows:
build-deploy:
jobs:
- build
- test
- deploy:
requires:
- test
filters:
branches:
only:
Expand Down
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"angular2-template-loader": "0.6.2",
"awesome-typescript-loader": "3.5.0",
"chalk": "^2.4.1",
"codecov": "^3.0.1",
"conventional-changelog": "^1.1.24",
"css-loader": "^0.28.11",
"dgeni": "^0.4.9",
Expand Down Expand Up @@ -122,7 +123,7 @@
"scripts": {
"precommit": "npm run linter:styles && npm run linter:lib",
"prettier": "lint-staged",
"test:unit": "karma start config/karma/karma.conf.js",
"test:unit": "gulp ci:test",
"valid:lic": "ts-node --project ./scripts/tsconfig.deploy.json ./scripts/validate-licenses.ts",
"mosaic:build-release": "gulp mosaic:build-release",
"cdk:build-release": "gulp cdk:build-release",
Expand Down
6 changes: 4 additions & 2 deletions tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ module.exports = (config) => {
autoWatch: false,

coverageReporter: {
type : 'json-summary',
dir : 'dist/coverage/',
subdir: '.'
subdir: '.',
reporters: [
{ type: 'lcov' }
]
},


Expand Down

0 comments on commit a8b79c6

Please sign in to comment.