Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
use coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
小傅Fox committed Jun 12, 2017
1 parent fc43c49 commit 117dcca
Show file tree
Hide file tree
Showing 6 changed files with 971 additions and 123 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# TypeScript ignores
*.js
*.js.map

# Unit Test ignores
config.yaml
html-report

# Created by https://www.gitignore.io/api/node,macos,linux,windows,visualstudiocode
# Created by https://www.gitignore.io/api/node,macos,linux,windows,visualstudiocode,istanbul

### Linux ###
*~
Expand Down Expand Up @@ -108,7 +110,6 @@ typings/
# dotenv environment variables file
.env


### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
Expand Down Expand Up @@ -137,4 +138,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/node,macos,linux,windows,visualstudiocode
# End of https://www.gitignore.io/api/node,macos,linux,windows,visualstudiocode,istanbul
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ node_js:
- 6
- 5
- 4
script: yarn test
before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
script: yarn run test-lcov
after_script:
- greenkeeper-lockfile-upload
- istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ config-file-bi
=====

[![Greenkeeper badge](https://badges.greenkeeper.io/coderfox/config-file-bi.svg)](https://greenkeeper.io/)

[![Build Status](https://img.shields.io/travis/coderfox/config-file-bi.svg)](https://travis-ci.org/coderfox/config-file-bi)
[![Build Status](https://img.shields.io/travis/coderfox/config-file-bi.svg?style=flat-square)](https://travis-ci.org/coderfox/config-file-bi)
[![Coveralls](https://img.shields.io/coveralls/coderfox/config-file-bi.svg?style=flat-square)](https://coveralls.io/github/coderfox/config-file-bi)
[![license](https://img.shields.io/github/license/coderfox/config-file-bi.svg?style=flat-square)](https://github.com/coderfox/config-file-bi/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/dt/config-file-bi.svg?style=flat-square)](https://www.npmjs.com/package/config-file-bi)
[![npm](https://img.shields.io/npm/v/config-file-bi.svg?style=flat-square)](https://www.npmjs.com/package/config-file-bi)

R/W config file management.

Expand Down
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "R/W config files.",
"main": "index.js",
"scripts": {
"test": "mocha",
"test": "nyc mocha",
"test-lcov": "nyc -r lcovonly mocha",
"postinstall": "tsc",
"pretest": "tsc"
},
Expand Down Expand Up @@ -36,14 +37,9 @@
"chai": "^4.0.2",
"coveralls": "^2.13.1",
"cz-conventional-changelog": "^2.0.0",
"istanbul": "^0.4.5",
"mocha": "^3.4.2",
"mocha-lcov-reporter": "^1.3.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^11.0.2"
},
"greenkeeper": {
"ignore": []
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"noLib": false,
"preserveConstEnums": true,
"suppressImplicitAnyIndexErrors": true,
"strictNullChecks": true
"strictNullChecks": true,
"sourceMap": true
},
"exclude": [
".vscode",
Expand Down
Loading

0 comments on commit 117dcca

Please sign in to comment.