Add Travis-CI and CodeCov.io integrations. #196
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the following:
E.g. https://travis-ci.org/nlutsenko/parse-server/builds/106656352
env
array.E.g. https://codecov.io/github/nlutsenko/parse-server?branch=nlutsenko.travis
mongodb-runner
npm module, which starts a mongo on pretest/posttest, so we can ensure mongo is always there locally whenever tests are run.Few benchmarks:
https://travis-ci.org/nlutsenko/parse-server/jobs/106656353
https://travis-ci.org/nlutsenko/parse-server/builds/106656352
The only flow change here is that to run tests - we enforce running mongo via
mongodb-runner
, which I still feel is absolutely fine and the best thing we could do, since it's somewhat a best practice.Please keep in mind - that this runner is never used in a non-dev environment, but is only installed and used when developing per
devDependencies
section of package.json.This superseeds and closes #30.