Skip to content

Commit

Permalink
feat: update deps, add --only-prepare to start containers
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Nov 30, 2022
1 parent 048858e commit e72877e
Show file tree
Hide file tree
Showing 5 changed files with 913 additions and 740 deletions.
5 changes: 5 additions & 0 deletions bin/cmds/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ exports.builder = (yargs) => (
describe: '.env file for docker-compose',
type: 'string',
})
.option('only-prepare', {
describe: 'creates containers but doesn\'t run the tests',
type: 'boolean',
default: false,
})
.help()
);
exports.handler = () => {};
2 changes: 1 addition & 1 deletion bin/cmds/test_cmds/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ exports.handler = async (argv) => {
}

const cleanup = argv.mutagenVolumeExternal ? 'down' : 'down -v';
if (argv.no_cleanup !== true) {
if (argv.no_cleanup !== true && argv.onlyPrepare !== true) {
echo(`\nAutomatically cleaning up after ${signal}\n`);
exec(`${dockerCompose} ${cleanup} --remove-orphans; true`);

Expand Down
5 changes: 5 additions & 0 deletions bin/cmds/test_cmds/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ exports.handler = async (argv) => {
await dockerExec('node-gyp', ['build'], { user: argv.euser });
}

if (argv.onlyPrepare) {
if (client) await client.close();
return;
}

if (argv.sleep) {
await echoAndExec('sleep', [argv.sleep]);
}
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,31 @@
"node": ">= 12.15.0"
},
"devDependencies": {
"eslint": "^8.23.0",
"eslint": "^8.28.0",
"eslint-config-makeomatic": "^5.1.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^43.0.2",
"jest": "^29.0.3",
"typescript": "^4.8.3"
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^45.0.1",
"jest": "^29.3.1",
"typescript": "^4.9.3"
},
"dependencies": {
"@commitlint/cli": "^17.1.2",
"@fastify/compress": "^6.1.1",
"@sinclair/typebox": "^0.24.40",
"@types/node": "^18.7.16",
"@commitlint/cli": "^17.3.0",
"@fastify/compress": "^6.2.0",
"@sinclair/typebox": "^0.25.10",
"@types/node": "^18.11.9",
"bluebird": "^3.7.2",
"chrome-launcher": "^0.15.1",
"chrome-remote-interface": "^0.31.3",
"cross-env": "^7.0.3",
"death": "^1.1.0",
"debug": "^4.3.4",
"execa": "5",
"fastify": "^4.5.3",
"fastify": "^4.10.2",
"find-up": "^5.0.0",
"get-port": "^5.1.1",
"glob": "^8.0.3",
"husky": "~8.0.1",
"husky": "~8.0.2",
"hyperid": "^3.0.1",
"is": "^3.3.0",
"js-yaml": "^4.1.0",
Expand All @@ -57,7 +57,7 @@
"lodash.set": "^4.3.2",
"ms-conf": "^7.0.2",
"npm-path": "^2.0.4",
"pino": "^8.5.0",
"pino": "^8.7.0",
"read-pkg": "^5.2.0",
"rimraf": "^3.0.2",
"semantic-release": "19.0.5",
Expand All @@ -66,8 +66,8 @@
"split2": "^4.1.0",
"strip-final-newline": "^2.0.0",
"tempy": "1",
"undici": "^5.10.0",
"yargs": "^17.5.1"
"undici": "^5.13.0",
"yargs": "^17.6.2"
},
"bin": {
"mdep": "./bin/cli.js",
Expand Down
Loading

0 comments on commit e72877e

Please sign in to comment.