Skip to content

Commit 1c0c2bc

Browse files
authored
Merge pull request #1 from Fizcko/develop
Add travis build job
2 parents 5a0d3b2 + 69cc7ba commit 1c0c2bc

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
- "lts/*"
5+
- "8"
6+
sudo: false
7+
script:
8+
- npm run test-cov-ci
9+
branches:
10+
only:
11+
- master

Readme.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Converting RSQL queries to MongoDB queries.
44

5+
[![NPM Version][npm-image]][npm-url]
6+
[![Build][build-image]][build-url]
7+
[![Coverage][coveralls-image]][coveralls-url]
8+
59
## Installation
610

711
```bash
@@ -76,4 +80,15 @@ try{
7680
catch(err){
7781
console.log(err);
7882
}
79-
```
83+
```
84+
85+
## License
86+
87+
[MIT](LICENSE)
88+
89+
[npm-image]: https://img.shields.io/npm/v/rsql-mongodb.svg
90+
[npm-url]: https://npmjs.org/package/rsql-mongodb
91+
[build-image]: https://img.shields.io/appveyor/ci/Fizcko/rsql-mongodb/master.svg
92+
[build-url]: https://ci.appveyor.com/project/dougwilson/express
93+
[coveralls-image]: https://img.shields.io/coveralls/Fizcko/rsql-mongodb/master.svg
94+
[coveralls-url]: https://coveralls.io/r/Fizcko/rsql-mongodb?branch=master

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rsql-mongodb",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Converting RSQL queries to MongoDB queries",
55
"main": "rsql-mongodb.js",
66
"typings": "rsql-mongodb.ts",
@@ -13,7 +13,8 @@
1313
"scripts": {
1414
"lint": "standard",
1515
"test": "mocha -- -R spec --bail",
16-
"test-cov": "nyc --reporter=text --reporter=html mocha --recursive --exit"
16+
"test-cov": "nyc --reporter=text --reporter=html mocha --recursive --exit",
17+
"test-cov-ci": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
1718
},
1819
"author": "Fizcko",
1920
"license": "MIT",
@@ -34,6 +35,7 @@
3435
],
3536
"devDependencies": {
3637
"chai": "4.2.0",
38+
"coveralls": "3.0.4",
3739
"mocha": "6.1.4",
3840
"nyc": "14.1.1"
3941
}

0 commit comments

Comments
 (0)