Skip to content

Commit

Permalink
ci(travis, coveralls): add of coverage script
Browse files Browse the repository at this point in the history
added a script for coveage with coverall, corrected travis' scripts to be run

Close #5
  • Loading branch information
ZorbaDimatteo committed Apr 11, 2017
1 parent 8dacb02 commit f4406b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ node_js:
- '4'
before_script:
- npm prune
script:
- npm run build
- npm run coverage
after_success:
- npm run docs
- npm run semantic-release
branches:
except:
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
},
"scripts": {
"commit": "git-cz",
"test": "mocha -r ts-node/register **/*.spec.ts --watch-extensions ts --watch",
"test:single": "nyc -e .ts -x **/*.spec.ts mocha -r ts-node/register **/*.spec.ts",
"test:watch": "mocha -r ts-node/register **/*.spec.ts --watch-extensions ts --watch",
"test": "nyc -e .ts -x **/*.spec.ts mocha -r ts-node/register **/*.spec.ts",
"coverage": "nyc -e .ts -x **/*.spec.ts mocha -r ts-node/register **/*.spec.ts nyc report --reporter=text-lcov | coveralls",
"docs": "typedoc --out ./docs ./src --exclude ./test",
"build": "rimraf dist && tsc --project tsconfig.prod.json && webpack",
"build-dev": "rimraf dist && tsc --project tsconfig.dev.json",
Expand Down Expand Up @@ -39,8 +40,10 @@
"@types/mocha": "2.2.40",
"chai": "3.5.0",
"commitizen": "2.9.6",
"coveralls": "2.13.0",
"cz-conventional-changelog": "2.0.0",
"mocha": "3.2.0",
"mocha-lcov-reporter": "1.3.0",
"nyc": "10.2.0",
"rimraf": "2.6.1",
"semantic-release": "6.3.2",
Expand Down

0 comments on commit f4406b4

Please sign in to comment.