From f047a593df57ed882f53ebe06e6dcf736beb407e Mon Sep 17 00:00:00 2001
From: Sebastian McKenzie
Date: Mon, 9 Nov 2015 04:03:59 -0800
Subject: [PATCH] add test coverage to ci
---
Makefile | 10 +++++++---
README.md | 10 +++++++---
circle.yml | 6 +-----
package.json | 1 +
4 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
index dce372562b..abc828ca19 100644
--- a/Makefile
+++ b/Makefile
@@ -39,11 +39,15 @@ test-only:
test: lint test-only
test-cov: clean
- BABEL_ENV=test; \
- gulp build
+ # build with test
+ rm -rf packages/*/lib
+ BABEL_ENV=test; gulp build
+
./scripts/test-cov.sh
-test-ci: lint bootstrap build test-only
+ cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js
+
+test-ci: lint bootstrap test-cov
publish:
git pull --rebase
diff --git a/README.md b/README.md
index d747d2503e..d2e292cbf3 100644
--- a/README.md
+++ b/README.md
@@ -9,12 +9,16 @@
-
-
-
+
+
+
+
+
+
+
diff --git a/circle.yml b/circle.yml
index 64973ea0b9..7e4cf24d74 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1,11 +1,7 @@
machine:
node:
version:
- 0.12.0
-
-dependencies:
- pre:
- - make bootstrap
+ 0.10.0
test:
override:
diff --git a/package.json b/package.json
index 4def116861..7d14676c1d 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"bundle-collapser": "^1.2.1",
"chai": "^2.2.0",
"chalk": "1.1.1",
+ "codecov.io": "^0.1.6",
"derequire": "^2.0.2",
"es5-shim": "^4.1.7",
"eslint": "1.1.0",