Skip to content

Commit 0a12373

Browse files
committed
Merge pull request #196 from ParsePlatform/nlutsenko.travis
Add Travis-CI and CodeCov.io integrations.
2 parents e5140de + e5911d3 commit 0a12373

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
branches:
2+
only:
3+
- master
4+
language: node_js
5+
node_js:
6+
- "4.1"
7+
- "4.2"
8+
env:
9+
- MONGODB_VERSION=3.0.8
10+
after_success: ./node_modules/.bin/codecov

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## parse-server
22

3+
[![Build Status](https://img.shields.io/travis/ParsePlatform/parse-server/master.svg?style=flat)](https://travis-ci.org/ParsePlatform/parse-server)
4+
[![Coverage Status](https://codecov.io/github/ParsePlatform/parse-server/coverage.svg?branch=master)](https://codecov.io/github/ParsePlatform/parse-server?branch=master)
5+
36
A Parse.com API compatible router package for Express
47

58
Read the announcement blog post here: http://blog.parse.com/announcements/introducing-parse-server-and-the-database-migration-tool/

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@
2222
"request": "^2.65.0"
2323
},
2424
"devDependencies": {
25+
"codecov": "^1.0.1",
2526
"istanbul": "^0.4.2",
26-
"jasmine": "^2.3.2"
27+
"jasmine": "^2.3.2",
28+
"mongodb-runner": "^3.1.15"
2729
},
2830
"scripts": {
29-
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources ./node_modules/.bin/jasmine"
31+
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
32+
"test": "TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources -x **/spec/** ./node_modules/.bin/jasmine",
33+
"posttest": "mongodb-runner stop"
3034
},
3135
"engines": {
3236
"node": ">=4.1"

0 commit comments

Comments
 (0)