Skip to content

Commit

Permalink
Merge pull request #18 from navyxie/dev
Browse files Browse the repository at this point in the history
fix coveralls
  • Loading branch information
navyxie committed May 26, 2016
2 parents 2a30850 + 51a5e18 commit a476ab2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -7,4 +7,7 @@ node_js:
- 0.10.35
script: make test

after_script: npm run cov
after_script: npm run cov

after_success:
"curl -L -l https://coveralls.io/repos/github/navyxie/phone-service/badge.svg?branch=master"
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# 通过手机号查询运营商以及号码归属地

[![Build Status via Travis CI](https://travis-ci.org/navyxie/phone-service.svg?branch=master)](https://travis-ci.org/navyxie/phone-service) [![Coverage Status](https://coveralls.io/repos/github/navyxie/Vue-order/badge.svg?branch=master)](https://coveralls.io/github/navyxie/phone-service?branch=master)
[![Build Status via Travis CI](https://travis-ci.org/navyxie/phone-service.svg?branch=master)](https://travis-ci.org/navyxie/phone-service) [![Coverage Status](https://coveralls.io/repos/github/navyxie/phone-service/badge.svg?branch=master)](https://coveralls.io/github/navyxie/phone-service?branch=master)

在很多行业很多项目,比如电商,比如金融,比如O2O等,在用户注册这一块会经常用到手机号。如何判断一个手机号是否存在?在特殊产品需求条件下,我们需要区分用户的运营商(移动、联通、电信),甚至区分用户省份,乃至城市,来方便产品,运营同学对用户进行地区化,个性化服务。为了解决这样的业务、产品需求,就动手写了这个模块。

Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "npm install && make test",
"cov":"npm install && ./node_modules/.bin/istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha -- --timeout 50000 --recursive test/ -R spec && rm -rf ./coverage"
"cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"repository": {
"type": "git",
Expand All @@ -25,7 +25,8 @@
"mocha": "^2.2.5",
"should": "^7.0.2",
"muk": "^0.3.2",
"istanbul": "^0.4.3"
"istanbul": "^0.4.3",
"coveralls": "2.11.9"
},
"dependencies": {
"async": "^1.4.0",
Expand Down

0 comments on commit a476ab2

Please sign in to comment.