Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bb44333d70 | |||
| 87f6adeda4 | |||
| 6334396bfc | |||
| 7a33252f2f | 
| @@ -2,8 +2,9 @@ image: hosttoday/ht-docker-node:lts | |||||||
|  |  | ||||||
| stages: | stages: | ||||||
| - release | - release | ||||||
| - test |  | ||||||
| - trigger | - trigger | ||||||
|  | - test | ||||||
|  |  | ||||||
|  |  | ||||||
| before_script: | before_script: | ||||||
|   - npm install -g npmci |   - npm install -g npmci | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								dist/npmci.build.docker.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								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.18", |   "version": "2.1.20", | ||||||
|   "description": "", |   "description": "", | ||||||
|   "main": "dist/index.js", |   "main": "dist/index.js", | ||||||
|   "bin": { |   "bin": { | ||||||
|   | |||||||
| @@ -30,6 +30,7 @@ let readDockerfiles = function(){ | |||||||
| let sortDockerfiles = function(){ | let sortDockerfiles = function(){ | ||||||
|     let done = plugins.q.defer(); |     let done = plugins.q.defer(); | ||||||
|     let redoSort:boolean; |     let redoSort:boolean; | ||||||
|  |     let sortCounter:number = 0; | ||||||
|     let sortFunction = function(){ |     let sortFunction = function(){ | ||||||
|         redoSort = false; |         redoSort = false; | ||||||
|         let notYetBuiltImages:string[] = []; |         let notYetBuiltImages:string[] = []; | ||||||
| @@ -37,9 +38,12 @@ let sortDockerfiles = function(){ | |||||||
|             notYetBuiltImages.push(dockerFileArg.cleanTag); |             notYetBuiltImages.push(dockerFileArg.cleanTag); | ||||||
|         }); |         }); | ||||||
|         NpmciEnv.dockerFiles.sort(function(a,b){ |         NpmciEnv.dockerFiles.sort(function(a,b){ | ||||||
|             plugins.beautylog.log("sort build order for Dockerimages"); |             console.log("iteration: " + sortCounter.toString()); | ||||||
|  |             console.log(notYetBuiltImages) | ||||||
|  |             console.log(a.cleanTag); | ||||||
|             let aIndex = notYetBuiltImages.indexOf(a.cleanTag); |             let aIndex = notYetBuiltImages.indexOf(a.cleanTag); | ||||||
|             if(aIndex != -1){notYetBuiltImages.splice(aIndex,1)} |             if(aIndex != -1){notYetBuiltImages.splice(aIndex,1)} | ||||||
|  |             console.log(notYetBuiltImages); | ||||||
|             if(notYetBuiltImages.indexOf(b.cleanTag) != -1){ |             if(notYetBuiltImages.indexOf(b.cleanTag) != -1){ | ||||||
|                 redoSort = true; |                 redoSort = true; | ||||||
|                 return -1; |                 return -1; | ||||||
| @@ -47,7 +51,8 @@ let sortDockerfiles = function(){ | |||||||
|                 return 0 |                 return 0 | ||||||
|             } |             } | ||||||
|         }); |         }); | ||||||
|         if(redoSort){ |         if(redoSort && sortCounter <= 50){ | ||||||
|  |             sortCounter++; | ||||||
|             sortFunction(); |             sortFunction(); | ||||||
|         } else { |         } else { | ||||||
|             done.resolve(); |             done.resolve(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user