Skip to content

Commit

Permalink
chore: add codecov for PRs (akveo#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa authored Jul 20, 2018
1 parent 043050a commit eb2940b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
comment:
layout: "diff, flags, files"
behavior: default
require_changes: true
require_base: no
require_head: yes
branches: null
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"test": "ng test",
"test:wp": "npm run test -- playground-wp",
"test:watch": "ng test playground-wp --watch",
"test:coverage": "rimraf coverage && ng test -sr -cc",
"test:coverage": "rimraf coverage && ng test playground --code-coverage --watch=false",
"lint": "ng lint playground --type-check",
"lint:styles": "stylelint ./src/framework/**/*.scss && stylelint ./docs/**/*.scss",
"lint:fix": "npm run lint -- --fix",
Expand All @@ -55,7 +55,7 @@
"ci:docs": "npm-run-all docs:prepare docs:build ",
"ci:dev-deploy": "npm run firebase use dev && npm run firebase deploy",
"ci:build": "npm-run-all build:prod build:package build:wp",
"ci:test": "npm-run-all build:package test:wp",
"ci:test": "npm-run-all build:package test:wp -- --code-coverage --watch=false",
"ci:e2e": "npm-run-all build:package e2e:wp",
"version:bump": "gulp version",
"version:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s",
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/travis-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ elif [[ "${MODE}" =~ ^.*_(e2e)$ ]]; then
npm run ci:e2e
elif [[ "${MODE}" =~ ^.*_(unit_test)$ ]]; then
npm run ci:test
npm install codecov -g && codecov
elif [[ "${MODE}" = docs ]]; then
npm run ci:docs
elif [[ "${MODE}" = deploy_dev ]]; then
Expand Down

0 comments on commit eb2940b

Please sign in to comment.