Skip to content

Commit

Permalink
added post to coveralls after successful build (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbenton authored Jan 19, 2017
1 parent 2dea202 commit 870503d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ cache:

install: make install
script: make ci
after_success: make post-coverage
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ coverage test-coverage code-coverage:

# These commands only run the report of the code coverage
report-coverage report-code-coverage:
@[ -d ./.nyc_output ] && NODE_ENV="test" nyc report || make test-coverage
@[ -d ./.nyc_output ] && NODE_ENV="test" nyc report || make test-coverage report-coverage

# posts code coverage to coveralls
post-coverage:
@[ -d ./.nyc_output ] && nyc report --reporter=text-lcov | coveralls || make test-coverage post-coverage

# The command the ci server runs
ci:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Utility that generates fake data in `json`, `yaml`, `yml`, `cson`, or `csv` formats based on models which are defined in `yaml`. Data can be generated using any combination of [FakerJS](http://marak.github.io/faker.js), [ChanceJS](http://chancejs.com), or Custom Functions.

[![Build Status](https://travis-ci.org/bentonam/fakeit.svg?branch=master)](https://travis-ci.org/bentonam/fakeit)
[![Coverage Status](https://coveralls.io/repos/bentonam/fakeit/badge.svg?branch=master&service=github)](https://coveralls.io/github/bentonam/fakeit?branch=master)

[![Dependency Status](https://david-dm.org/bentonam/fakeit.svg)](https://david-dm.org/bentonam/fakeit)
[![devDependency Status](https://david-dm.org/bentonam/fakeit/dev-status.svg)](https://david-dm.org/bentonam/fakeit#info=devDependencies)

![Example of how it works](https://github.com/bentonam/fakeit/blob/release/1.0.0/assets/example.gif)

Generated data can be output in the following formats and destinations:
Expand Down

0 comments on commit 870503d

Please sign in to comment.