Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cb2400652f | |||
| 455247eb18 |
18
dist/npmci.build.docker.js
vendored
18
dist/npmci.build.docker.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmci",
|
"name": "npmci",
|
||||||
"version": "2.1.42",
|
"version": "2.1.43",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
#!/bin/sh
|
|
||||||
npm -v
|
npm -v
|
||||||
node -v
|
node -v
|
||||||
@@ -170,15 +170,15 @@ export class Dockerfile {
|
|||||||
bashBare("docker pull " + this.buildTag);
|
bashBare("docker pull " + this.buildTag);
|
||||||
};
|
};
|
||||||
test(){
|
test(){
|
||||||
let testFile = plugins.path.join(paths.NpmciTestDir,"test_" + this.version + ".sh");
|
let testFile:string = plugins.path.join(paths.NpmciTestDir,"test_" + this.version + ".sh");
|
||||||
let testExists = plugins.smartfile.checks.fileExistsSync(testFile);
|
let testFileExists:boolean = plugins.smartfile.checks.fileExistsSync(testFile);
|
||||||
if(testExists){
|
if(testFileExists){
|
||||||
console.log("docker run -v " +
|
bashBare("docker run --name npmci_test_container " + this.buildTag + " mkdir /npmci_test");
|
||||||
paths.NpmciTestDir + ":/test " +
|
bashBare("docker cp " + testFile + " npmci_test_container:/npmci_test/test.sh");
|
||||||
"--name " + this.containerName + " " + this.buildTag + " /test/" + "test_" + this.version + ".sh");
|
bashBare("docker commit npmci_test_container npmci_test_image");
|
||||||
bashBare("docker run -v " +
|
bashBare("docker run npmci_test_image sh /npmci_test/test.sh");
|
||||||
paths.NpmciTestDir + ":/test " +
|
bashBare("docker rm npmci_test_container");
|
||||||
"--name " + this.containerName + " " + this.buildTag + " /test/" + "test_" + this.version + ".sh");
|
bashBare("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!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user