update syntax

This commit is contained in:
Philipp Kunz 2017-10-11 18:15:22 +02:00
parent e180c46ffa
commit 23dfefd813
2 changed files with 6 additions and 6 deletions

View File

@ -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 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 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 rmi --force 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 rm npmci_test_container`);
yield npmci_bash_1.bash(`docker rmi --force npmci_test_image`);
}
else {
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!');

View File

@ -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 cp ${testFile} npmci_test_container:/npmci_test/test.sh`)
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 rm npmci_test_container')
await bash('docker rmi --force npmci_test_image')
await bash(`docker run --entrypoint="bash" npmci_test_image -x /npmci_test/test.sh`)
await bash(`docker rm npmci_test_container`)
await bash(`docker rmi --force npmci_test_image`)
} else {
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!')
}