Skip to content

Commit bca5fe2

Browse files
authored
feat: couchdb base service (#19)
1 parent 863ba27 commit bca5fe2

7 files changed

Lines changed: 632 additions & 405 deletions

File tree

.mdeprc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
"test_framework": "jest --coverage --coverageDirectory <coverageDirectory> --detectOpenHandles --runTestsByPath",
44
"tests": "__tests__/*.js",
55
"auto_compose": true,
6-
"node": "10.16.3",
6+
"node": "12.13.0",
77
"tester_flavour": "chrome-tester",
88
"services": [
99
"redisSentinel",
1010
"redisCluster",
1111
"rabbitmq",
1212
"postgres",
1313
"elasticsearch",
14-
"cassandra"
14+
"cassandra",
15+
"couchdb"
1516
],
1617
"extras": {
1718
"tester": {

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require('yargs')
2525
.option('node', {
2626
alias: 'n',
2727
describe: 'node version to use when building',
28-
default: '10.12.0',
28+
default: '12.13.0',
2929
})
3030
.option('env', {
3131
alias: 'E',

bin/cmds/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ exports.builder = (yargs) => (
5555
.option('services', {
5656
type: 'array',
5757
description: 'enable listed services',
58-
choices: Object.keys(require('./test_cmds/auto_compose').SERVICE_MAP),
58+
choices: Object.keys(require('./test_cmds/auto-compose').SERVICE_MAP),
5959
})
6060
.option('docker_compose_version', {
6161
alias: 'dcv',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const SERVICE_MAP = {
1515
rabbitmq,
1616
elasticsearch,
1717
cassandra,
18+
couchdb,
1819
};
1920

2021
exports.SERVICE_MAP = SERVICE_MAP;
@@ -155,3 +156,10 @@ function cassandra(composer, argv) {
155156
},
156157
}, argv.extras.cassandra);
157158
}
159+
160+
function couchdb(composer, argv) {
161+
composer.services.couchdb = merge({
162+
image: 'couchdb:2',
163+
hostname: 'couchdb',
164+
}, argv.extras.couchdb);
165+
}

bin/cmds/test_cmds/compose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ exports.handler = (argv) => {
5757
* Generates dynamic docker-compose file based on the presets
5858
*/
5959
if (argv.auto_compose) {
60-
require('./auto_compose').handler(argv);
60+
require('./auto-compose').handler(argv);
6161
const autoComposeFile = argv.docker_compose;
6262

6363
dockerComposeFiles.unshift(autoComposeFile);

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,27 @@
2222
"node": ">= 10.5.0"
2323
},
2424
"devDependencies": {
25-
"@babel/cli": "^7.6.4",
26-
"@babel/core": "^7.6.4",
27-
"@babel/plugin-proposal-class-properties": "^7.5.5",
25+
"@babel/cli": "^7.7.0",
26+
"@babel/core": "^7.7.2",
27+
"@babel/plugin-proposal-class-properties": "^7.7.0",
2828
"@babel/plugin-transform-strict-mode": "^7.2.0",
2929
"codecov": "^3.6.1",
3030
"cross-env": "^6.0.3",
31-
"eslint": "^6.5.1",
32-
"eslint-config-makeomatic": "^3.1.0",
31+
"eslint": "^6.6.0",
32+
"eslint-config-makeomatic": "^4.0.0",
3333
"eslint-plugin-import": "^2.18.2",
3434
"eslint-plugin-promise": "^4.2.1",
35+
"eslint-plugin-unicorn": "^12.1.0",
3536
"jest": "^24.9.0"
3637
},
3738
"dependencies": {
3839
"@commitlint/cli": "^8.2.0",
3940
"bluebird": "^3.7.1",
40-
"chrome-launcher": "^0.11.2",
41+
"chrome-launcher": "^0.12.0",
4142
"chrome-remote-interface": "^0.28.0",
4243
"death": "^1.1.0",
4344
"find-up": "^4.1.0",
44-
"glob": "^7.1.4",
45+
"glob": "^7.1.6",
4546
"husky": "^3.0.9",
4647
"hyperid": "^2.0.1",
4748
"is": "^3.2.1",
@@ -51,10 +52,10 @@
5152
"lodash.set": "^4.3.2",
5253
"ms-conf": "^5.0.2",
5354
"npm-path": "^2.0.4",
54-
"pino": "^5.13.5",
55+
"pino": "^5.13.6",
5556
"read-pkg": "^5.2.0",
5657
"rimraf": "^3.0.0",
57-
"semantic-release": "15.13.24",
58+
"semantic-release": "15.13.30",
5859
"shelljs": "^0.8.3",
5960
"yargs": "^14.2.0"
6061
},

0 commit comments

Comments
 (0)