| 
									
										
										
										
											2020-02-11 13:50:05 -08:00
										 |  |  | local compiler_versions = [ | 
					
						
							|  |  |  |     "04", "05", "06", "07", "08", "09" | 
					
						
							|  |  |  | ]; | 
					
						
							| 
									
										
										
										
											2020-02-11 13:40:00 -08:00
										 |  |  | local test_compiler_version(version) = [ | 
					
						
							| 
									
										
										
										
											2020-02-11 13:50:05 -08:00
										 |  |  |     "cd code/compiler/%(version)", | 
					
						
							| 
									
										
										
										
											2020-02-11 13:40:00 -08:00
										 |  |  |     "mkdir build && cd build", | 
					
						
							|  |  |  |     "cd .." | 
					
						
							| 
									
										
										
										
											2020-02-11 13:50:05 -08:00
										 |  |  | ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-11 13:35:36 -08:00
										 |  |  | { | 
					
						
							|  |  |  |     "kind": "pipeline", | 
					
						
							|  |  |  |     "type": "docker", | 
					
						
							|  |  |  |     "name": "default", | 
					
						
							|  |  |  |     "steps": [ | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             "name": "test-compiler", | 
					
						
							|  |  |  |             "image": "gcc", | 
					
						
							| 
									
										
										
										
											2020-02-11 13:50:05 -08:00
										 |  |  |             "commands": std.flatMap(test_compiler_version, compiler_versions) | 
					
						
							| 
									
										
										
										
											2020-02-11 13:35:36 -08:00
										 |  |  |         } | 
					
						
							|  |  |  |     ] | 
					
						
							|  |  |  | } |