fix doPublish function
This commit is contained in:
		
							
								
								
									
										4
									
								
								dist/npmts.options.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/npmts.options.js
									
									
									
									
										vendored
									
									
								
							@@ -27,7 +27,9 @@ exports.run = function (configArg) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    // handle state of current build
 | 
					    // handle state of current build
 | 
				
			||||||
    exports.isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
 | 
					    exports.isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
 | 
				
			||||||
        : plugins.beautylog.info("NOT A RELEASE build! We are not publishing anything!");
 | 
					        : plugins.beautylog.info("NOT A RELEASE build!");
 | 
				
			||||||
 | 
					    exports.isRelease() && exports.doPublish() ? plugins.beautylog.info("All right: This is the first subBuild, so this one publishes coverage and docs when tests succeed!")
 | 
				
			||||||
 | 
					        : plugins.beautylog.info("We are not publishing anything!");
 | 
				
			||||||
    // handle coveralls
 | 
					    // handle coveralls
 | 
				
			||||||
    config.coveralls ? void (0) : config.coveralls = false;
 | 
					    config.coveralls ? void (0) : config.coveralls = false;
 | 
				
			||||||
    exports.doPublish() ? void (0) : config.coveralls = false;
 | 
					    exports.doPublish() ? void (0) : config.coveralls = false;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@ export let isRelease = function():boolean {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export let doPublish = function():boolean {
 | 
					export let doPublish = function():boolean {
 | 
				
			||||||
    return isRelease()
 | 
					    return isRelease()
 | 
				
			||||||
        && plugins.smartci.get.subJobNumber() != 1;
 | 
					        && plugins.smartci.get.subJobNumber() == 1;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export var run = function(configArg){
 | 
					export var run = function(configArg){
 | 
				
			||||||
@@ -32,7 +32,9 @@ export var run = function(configArg){
 | 
				
			|||||||
    // handle state of current build
 | 
					    // handle state of current build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
 | 
					    isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
 | 
				
			||||||
        : plugins.beautylog.info("NOT A RELEASE build! We are not publishing anything!");
 | 
					        : plugins.beautylog.info("NOT A RELEASE build!");
 | 
				
			||||||
 | 
					    isRelease() && doPublish() ? plugins.beautylog.info("All right: This is the first subBuild, so this one publishes coverage and docs when tests succeed!")
 | 
				
			||||||
 | 
					        : plugins.beautylog.info("We are not publishing anything!");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // handle coveralls
 | 
					    // handle coveralls
 | 
				
			||||||
    config.coveralls ? void(0) : config.coveralls = false;
 | 
					    config.coveralls ? void(0) : config.coveralls = false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user