From e0da46390d98c532e16e4fb22e1bf9ab60b977a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Tue, 10 Jan 2017 20:30:44 +0100 Subject: [PATCH] Added codecov config --- .travis.yml | 3 +++ README.md | 2 +- package.json | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 00748b8..fa8f39f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: node_js +sudo: false node_js: - "6" before_script: - npm run deps - npm run build +after_success: + - npm run codecov diff --git a/README.md b/README.md index 8bed5b9..b9ced73 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # SpaceTac, a space tactical RPG [![Build Status](https://travis-ci.org/thunderk/spacetac.svg?branch=master)](https://travis-ci.org/thunderk/spacetac) +[![codecov](https://codecov.io/gh/thunderk/spacetac/branch/master/graph/badge.svg)](https://codecov.io/gh/thunderk/spacetac) This is a work-in-progress technology preview. Graphics are mostly placeholders at the moment. [PLAY](http://thunderk.github.io/spacetac/) directly in your browser, no dependency required. - diff --git a/package.json b/package.json index 1340f1a..f280f45 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "build": "tsc -p .", "test": "karma start spec/support/karma.conf.js && remap-istanbul -i out/coverage/coverage.json -o out/coverage -t html", "build-test": "npm run build && npm run test", - "serve": "live-server out --host=127.0.0.1 --port=8012 --ignore=coverage" + "serve": "live-server out --host=127.0.0.1 --port=8012 --ignore=coverage", + "codecov": "remap-istanbul -i out/coverage/coverage.json -o out/coverage/mapped.json -t json && codecov -f out/coverage/mapped.json" }, "repository": { "type": "git", @@ -18,6 +19,7 @@ "license": "MIT", "devDependencies": { "bower": "~1.8", + "codecov": "~1.0", "jasmine": "~2.5", "karma": "~1.3", "karma-coverage": "~1.1",