now checking for specific testfiles for each Image version
This commit is contained in:
parent
48bee2fa92
commit
4ffb1d1e7e
14
dist/npmci.build.docker.js
vendored
14
dist/npmci.build.docker.js
vendored
File diff suppressed because one or more lines are too long
0
test/assets/test/test_latest.sh
Normal file
0
test/assets/test/test_latest.sh
Normal file
@ -169,10 +169,16 @@ export class Dockerfile {
|
||||
bashBare("docker pull " + this.buildTag);
|
||||
};
|
||||
test(){
|
||||
|
||||
bashBare("docker run -v " +
|
||||
plugins.path.join(paths.NpmciProjectDir,"./test") + ":/test/ " +
|
||||
"--name " + this.containerName + " /test/" + "test_" + this.version);
|
||||
let testExists = plugins.smartfile.checks.fileExistsSync(
|
||||
plugins.path.join(paths.NpmciProjectDir,("./test/test_" + this.version + ".sh"))
|
||||
);
|
||||
if(testExists){
|
||||
bashBare("docker run -v " +
|
||||
plugins.path.join(paths.NpmciProjectDir,"./test") + ":/test/ " +
|
||||
"--name " + this.containerName + " /test/" + "test_" + this.version + ".sh");
|
||||
} else {
|
||||
plugins.beautylog.warn("skipping tests for " + this.cleanTag + " because no testfile was found!");
|
||||
}
|
||||
};
|
||||
release(){
|
||||
bashBare("docker tag " + this.getId() + " " + this.releaseTag);
|
||||
|
Loading…
Reference in New Issue
Block a user