Skip to content

Commit 4d598d4

Browse files
committed
Merge pull request Asana#12 from Asana/coveralls
Adding Coveralls reporting
2 parents 89a3f23 + ed49be8 commit 4d598d4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ before_script:
2323
# Make sure to bundle the application before any deploys
2424
before_deploy:
2525
- npm run bundle
26+
# Report code coverage to coveralls after successful test runs
27+
after_success:
28+
- npm run coveralls

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"clean": "rm -rf build coverage *.js *.d.ts",
1717
"precompile": "npm run clean",
1818
"compile": "find src test typings -name \"*.ts\" | xargs tsc --declaration --module commonjs --target es5 --noImplicitAny --outDir build",
19+
"coveralls": "cat ./coverage/lcov.info | coveralls",
1920
"prelint": "npm run compile -- --sourceMap",
2021
"lint": "find src test -name \"*.ts\" | sed 's/^/--file=/g' | xargs tslint",
2122
"pretest": "npm run lint && find build -type f -name *.js -exec sed -i .bak -e '1s/^var __extends/\\/\\* istanbul ignore next \\*\\/\rvar __extends/; 1s/^/require(\"source-map-support\").install();\r/' {} \\;",
@@ -38,6 +39,7 @@
3839
"homepage": "https://github.com/Asana/typescript-starter",
3940
"devDependencies": {
4041
"chai": "^2.3.0",
42+
"coveralls": "^2.11.2",
4143
"dts-generator": "^1.4.1",
4244
"istanbul": "^0.3.14",
4345
"mocha": "^2.2.4",

0 commit comments

Comments
 (0)