Skip to content

Commit 73fb99f

Browse files
committedJan 26, 2020
feat: add pull option to force pull docker containers
1 parent 017c142 commit 73fb99f

File tree

4 files changed

+867
-773
lines changed

4 files changed

+867
-773
lines changed
 

‎bin/cmds/test.js

+5
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ exports.builder = (yargs) => (
142142
string: true,
143143
default: '',
144144
})
145+
.option('pull', {
146+
describe: 'force pull docker containers',
147+
type: 'boolean',
148+
default: false,
149+
})
145150
.help()
146151
);
147152
exports.handler = () => {};

‎bin/cmds/test_cmds/run.js

+7
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ exports.handler = async (argv) => {
5656

5757
const { compose } = argv;
5858

59+
if (argv.pull) {
60+
if (await echoAndExec(`${compose} pull`).code !== 0) {
61+
echo('failed pull docker containers. Exit 128');
62+
exit(128);
63+
}
64+
}
65+
5966
// start containers
6067
if ((await echoAndExec(`${compose} up -d`)).code !== 0) {
6168
echo('failed to start docker containers. Exit 128');

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"@babel/core": "^7.8.3",
2727
"@babel/plugin-proposal-class-properties": "^7.8.3",
2828
"@babel/plugin-transform-strict-mode": "^7.8.3",
29-
"codecov": "^3.6.1",
30-
"cross-env": "^6.0.3",
29+
"codecov": "^3.6.2",
30+
"cross-env": "^7.0.0",
3131
"eslint": "^6.8.0",
3232
"eslint-config-makeomatic": "^4.0.0",
3333
"eslint-plugin-import": "^2.20.0",
3434
"eslint-plugin-promise": "^4.2.1",
3535
"eslint-plugin-unicorn": "^15.0.1",
36-
"jest": "^24.9.0",
36+
"jest": "^25.1.0",
3737
"tempy": "^0.3.0"
3838
},
3939
"dependencies": {
@@ -44,7 +44,7 @@
4444
"death": "^1.1.0",
4545
"find-up": "^4.1.0",
4646
"glob": "^7.1.6",
47-
"husky": "^4.0.10",
47+
"husky": "^4.2.1",
4848
"hyperid": "^2.0.3",
4949
"is": "^3.2.1",
5050
"js-yaml": "^3.13.1",
@@ -56,7 +56,7 @@
5656
"pino": "^5.16.0",
5757
"read-pkg": "^5.2.0",
5858
"rimraf": "^3.0.0",
59-
"semantic-release": "16.0.2",
59+
"semantic-release": "16.0.3",
6060
"shelljs": "^0.8.3",
6161
"strip-final-newline": "^2.0.0",
6262
"yargs": "^15.1.0"

‎yarn.lock

+850-768
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.