Skip to content

Commit 9ec6b1c

Browse files
authored
Merge pull request #6 from kata-ai/coverage
Add coverage
2 parents e9a848a + 85e4115 commit 9ec6b1c

File tree

4 files changed

+55
-34
lines changed

4 files changed

+55
-34
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
node_js:
3+
- "6"
4+
install:
5+
- npm install
6+
script:
7+
- npm test
8+
- npm run cover
9+
services:
10+
- rabbitmq
11+
sudo: enabled

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Merapi Plugin: Service RabbitMQ
22

3+
[![Build Status](https://travis-ci.org/kata-ai/merapi-plugin-service-rabbit.svg?branch=master)](https://travis-ci.org/kata-ai/merapi-plugin-service-rabbit)
4+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3bb4ada1e0aa452c92d2878dc4cfad33)](https://www.codacy.com/app/kata-ai/merapi-plugin-service-rabbit?utm_source=github.com&utm_medium=referral&utm_content=kata-ai/merapi-plugin-service-rabbit&utm_campaign=Badge_Grade)
5+
36
## Introduction
47

58
This plugin use RabbitMQ for messaging. When subscribing to an event, it will first check if the publisher is RabbitMQ compatible. If so, it will subscribe to that event's queue, otherwise it will create hook that will be called by the publisher.

package.json

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,43 @@
11
{
2-
"name": "merapi-plugin-service-rabbit",
3-
"version": "0.4.0",
4-
"description": "Provide RabbitMQ integration interface",
5-
"main": "index.js",
6-
"scripts": {
7-
"test": "chmod +x ./test.sh; ./test.sh"
8-
},
9-
"repository": {
10-
"type": "git",
11-
"url": "https://github.com/kata-ai/merapi-plugin-service-rabbit.git"
12-
},
13-
"keywords": [
14-
"merapi",
15-
"microservice",
16-
"rabbitmq"
17-
],
18-
"author": "Ikmal Syifai <[email protected]>",
19-
"license": "ISC",
20-
"homepage": "https://github.com/kata-ai/merapi-plugin-service-rabbit#readme",
21-
"dependencies": {
22-
"amqplib": "^0.4.2",
23-
"merapi": "^0.16.0",
24-
"merapi-plugin-service": "^0.3.5",
25-
"requestretry": "^1.12.0",
26-
"then-sleep": "^1.0.1"
27-
},
28-
"devDependencies": {
29-
"chai": "^4.1.2",
30-
"chai-as-promised": "^7.1.1",
31-
"istanbul": "^0.4.5",
32-
"mocha": "^2.5.3",
33-
"supertest": "^2.0.0"
34-
}
2+
"name": "merapi-plugin-service-rabbit",
3+
"version": "0.4.0",
4+
"description": "Provide RabbitMQ integration interface",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "./node_modules/.bin/mocha",
8+
"cover": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage && rm -rf ./coverage"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/kata-ai/merapi-plugin-service-rabbit.git"
13+
},
14+
"keywords": [
15+
"merapi",
16+
"microservice",
17+
"rabbitmq"
18+
],
19+
"author": "Ikmal Syifai <[email protected]>",
20+
"contributors": [
21+
"Yoga Aliarham <[email protected]>",
22+
"Ricky Anders <[email protected]>",
23+
"Reyhan Sofian <[email protected]>"
24+
],
25+
"license": "ISC",
26+
"homepage": "https://github.com/kata-ai/merapi-plugin-service-rabbit#readme",
27+
"dependencies": {
28+
"amqplib": "^0.4.2",
29+
"merapi": "^0.16.0",
30+
"merapi-plugin-service": "^0.3.5",
31+
"requestretry": "^1.12.0",
32+
"then-sleep": "^1.0.1"
33+
},
34+
"devDependencies": {
35+
"chai": "^4.1.2",
36+
"chai-as-promised": "^7.1.1",
37+
"codacy-coverage": "^2.0.3",
38+
"istanbul": "^0.4.5",
39+
"mocha": "^2.5.3",
40+
"mocha-lcov-reporter": "^1.3.0",
41+
"supertest": "^2.0.0"
42+
}
3543
}

test.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)