Merge pull request #196 from ParsePlatform/nlutsenko.travis

Add Travis-CI and CodeCov.io integrations.
This commit is contained in:
Nikita Lutsenko
2016-02-03 00:33:40 -08:00
3 changed files with 19 additions and 2 deletions

10
.travis.yml Normal file
View File

@@ -0,0 +1,10 @@
branches:
only:
- master
language: node_js
node_js:
- "4.1"
- "4.2"
env:
- MONGODB_VERSION=3.0.8
after_success: ./node_modules/.bin/codecov

View File

@@ -1,5 +1,8 @@
## parse-server
[![Build Status](https://img.shields.io/travis/ParsePlatform/parse-server/master.svg?style=flat)](https://travis-ci.org/ParsePlatform/parse-server)
[![Coverage Status](https://codecov.io/github/ParsePlatform/parse-server/coverage.svg?branch=master)](https://codecov.io/github/ParsePlatform/parse-server?branch=master)
A Parse.com API compatible router package for Express
Read the announcement blog post here: http://blog.parse.com/announcements/introducing-parse-server-and-the-database-migration-tool/

View File

@@ -22,11 +22,15 @@
"request": "^2.65.0"
},
"devDependencies": {
"codecov": "^1.0.1",
"istanbul": "^0.4.2",
"jasmine": "^2.3.2"
"jasmine": "^2.3.2",
"mongodb-runner": "^3.1.15"
},
"scripts": {
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources ./node_modules/.bin/jasmine"
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources -x **/spec/** ./node_modules/.bin/jasmine",
"posttest": "mongodb-runner stop"
},
"engines": {
"node": ">=4.1"