add test coverage to ci
This commit is contained in:
parent
63b28ecc89
commit
f047a593df
10
Makefile
10
Makefile
@ -39,11 +39,15 @@ test-only:
|
|||||||
test: lint test-only
|
test: lint test-only
|
||||||
|
|
||||||
test-cov: clean
|
test-cov: clean
|
||||||
BABEL_ENV=test; \
|
# build with test
|
||||||
gulp build
|
rm -rf packages/*/lib
|
||||||
|
BABEL_ENV=test; gulp build
|
||||||
|
|
||||||
./scripts/test-cov.sh
|
./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:
|
publish:
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
|
|||||||
10
README.md
10
README.md
@ -9,12 +9,16 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://travis-ci.org/babel/babel"><img alt="Build Status" src="https://img.shields.io/travis/babel/babel/master.svg?style=flat"></a>
|
<a href="https://travis-ci.org/babel/babel"><img alt="Travis Status" src="https://img.shields.io/travis/babel/babel/master.svg?style=flat&label=travis"></a>
|
||||||
<a href="http://badge.fury.io/js/babel-core"><img alt="npm version" src="https://badge.fury.io/js/babel-core.svg"></a>
|
<a href="https://travis-ci.org/babel/babel"><img alt="CircleCI Status" src="https://img.shields.io/circleci/project/babel/babel/master.svg?style=flat&label=circle"></a>
|
||||||
<a href="https://npmjs.org/package/babel-core"><img alt="Downloads" src="http://img.shields.io/npm/dm/babel-core.svg"></a>
|
|
||||||
|
<a href="https://codecov.io/github/babel/babel"><img alt="Coverage Status" src="https://img.shields.io/codecov/c/github/babel/babel/master.svg?style=flat"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
<a href="http://badge.fury.io/js/babel-core"><img alt="npm version" src="https://badge.fury.io/js/babel-core.svg"></a>
|
||||||
|
<a href="https://npmjs.org/package/babel-core"><img alt="Downloads" src="http://img.shields.io/npm/dm/babel-core.svg"></a>
|
||||||
|
|
||||||
<a href="http://issuestats.com/github/babel/babel"><img alt="Issue Stats" src="http://issuestats.com/github/babel/babel/badge/pr?style=flat"></a>
|
<a href="http://issuestats.com/github/babel/babel"><img alt="Issue Stats" src="http://issuestats.com/github/babel/babel/badge/pr?style=flat"></a>
|
||||||
<a href="http://issuestats.com/github/babel/babel"><img alt="Issue Stats" src="http://issuestats.com/github/babel/babel/badge/issue?style=flat"></a>
|
<a href="http://issuestats.com/github/babel/babel"><img alt="Issue Stats" src="http://issuestats.com/github/babel/babel/badge/issue?style=flat"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
machine:
|
machine:
|
||||||
node:
|
node:
|
||||||
version:
|
version:
|
||||||
0.12.0
|
0.10.0
|
||||||
|
|
||||||
dependencies:
|
|
||||||
pre:
|
|
||||||
- make bootstrap
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
"bundle-collapser": "^1.2.1",
|
"bundle-collapser": "^1.2.1",
|
||||||
"chai": "^2.2.0",
|
"chai": "^2.2.0",
|
||||||
"chalk": "1.1.1",
|
"chalk": "1.1.1",
|
||||||
|
"codecov.io": "^0.1.6",
|
||||||
"derequire": "^2.0.2",
|
"derequire": "^2.0.2",
|
||||||
"es5-shim": "^4.1.7",
|
"es5-shim": "^4.1.7",
|
||||||
"eslint": "1.1.0",
|
"eslint": "1.1.0",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user