update syntax
This commit is contained in:
parent
e180c46ffa
commit
23dfefd813
6
dist/mod_docker/mod.classes.dockerfile.js
vendored
6
dist/mod_docker/mod.classes.dockerfile.js
vendored
@ -74,9 +74,9 @@ class Dockerfile {
|
|||||||
yield npmci_bash_1.bash(`docker run --name npmci_test_container --entrypoint="bash" ${this.buildTag} -c "mkdir /npmci_test"`);
|
yield npmci_bash_1.bash(`docker run --name npmci_test_container --entrypoint="bash" ${this.buildTag} -c "mkdir /npmci_test"`);
|
||||||
yield npmci_bash_1.bash(`docker cp ${testFile} npmci_test_container:/npmci_test/test.sh`);
|
yield npmci_bash_1.bash(`docker cp ${testFile} npmci_test_container:/npmci_test/test.sh`);
|
||||||
yield npmci_bash_1.bash(`docker commit npmci_test_container npmci_test_image`);
|
yield npmci_bash_1.bash(`docker commit npmci_test_container npmci_test_image`);
|
||||||
yield npmci_bash_1.bash('docker run --entrypoint="bash" npmci_test_image -x /npmci_test/test.sh');
|
yield npmci_bash_1.bash(`docker run --entrypoint="bash" npmci_test_image -x /npmci_test/test.sh`);
|
||||||
yield npmci_bash_1.bash('docker rm npmci_test_container');
|
yield npmci_bash_1.bash(`docker rm npmci_test_container`);
|
||||||
yield npmci_bash_1.bash('docker rmi --force npmci_test_image');
|
yield npmci_bash_1.bash(`docker rmi --force npmci_test_image`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!');
|
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!');
|
||||||
|
@ -75,9 +75,9 @@ export class Dockerfile {
|
|||||||
await bash(`docker run --name npmci_test_container --entrypoint="bash" ${this.buildTag} -c "mkdir /npmci_test"`)
|
await bash(`docker run --name npmci_test_container --entrypoint="bash" ${this.buildTag} -c "mkdir /npmci_test"`)
|
||||||
await bash(`docker cp ${testFile} npmci_test_container:/npmci_test/test.sh`)
|
await bash(`docker cp ${testFile} npmci_test_container:/npmci_test/test.sh`)
|
||||||
await bash(`docker commit npmci_test_container npmci_test_image`)
|
await bash(`docker commit npmci_test_container npmci_test_image`)
|
||||||
await bash('docker run --entrypoint="bash" npmci_test_image -x /npmci_test/test.sh')
|
await bash(`docker run --entrypoint="bash" npmci_test_image -x /npmci_test/test.sh`)
|
||||||
await bash('docker rm npmci_test_container')
|
await bash(`docker rm npmci_test_container`)
|
||||||
await bash('docker rmi --force npmci_test_image')
|
await bash(`docker rmi --force npmci_test_image`)
|
||||||
} else {
|
} else {
|
||||||
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!')
|
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user