feat(.drone.yml,-main_test.go,-.gitignore): submit scoreboard in drone instead
	
		
			
	
		
	
	
		
	
		
			Some checks reported errors
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build encountered an error
				
			
		
		
	
	
				
					
				
			
		
			Some checks reported errors
		
		
	
	continuous-integration/drone/push Build encountered an error
				
			This commit is contained in:
		
							parent
							
								
									753ed6f9c6
								
							
						
					
					
						commit
						1e2f5aa4e0
					
				
							
								
								
									
										10
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.drone.yml
									
									
									
									
									
								
							|  | @ -26,6 +26,16 @@ steps: | |||
|       commands: | ||||
|           - make prepare-test | ||||
|           - make test | ||||
|     - name: scoreboard | ||||
|       environment: | ||||
|           - 'export ORIG_HOME=$(grep ^${USER}: /etc/passwd |cut -d : -f 6)' | ||||
|           - PATH=$PATH:$ORIG_HOME/.local/bin | ||||
|       commands: | ||||
|           - if echo "${DRONE_REPO_NAME}" | grep -q '-'; then SUBMITTER_NAME=$(echo "{DRONE_REPO_NAME}" | cut -d'-' -f1); else SUBMITTER_NAME={DRONE_REPO_NAME}; | ||||
|             fi | ||||
|           - mkdir repo | ||||
|           - cp $ORIG_HOME/.config/ci/teapot.env .env && joint-teapot JOJ3-scoreboard "score.json" $SUBMITTER_NAME "" "JOJ3-examples" "JOJ3_dev.csv" | ||||
|           - cat joint-teapot.log | ||||
|     - name: store | ||||
|       commands: | ||||
|           - cp build/joj3 /home/drone/.local/bin/joj3 | ||||
|  |  | |||
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -126,3 +126,4 @@ build/ | |||
| !examples/**/*.out | ||||
| tmp/ | ||||
| repos/ | ||||
| score.json | ||||
|  |  | |||
|  | @ -129,8 +129,8 @@ func TestMain(t *testing.T) { | |||
| 		}) | ||||
| 	} | ||||
| 	if !t.Failed() { | ||||
| 		scoreboard.SaveFile("../../scoreboard.json") | ||||
| 		defer os.Remove("../../scoreboard.json") | ||||
| 		scoreboard.Submit() | ||||
| 		scoreboard.SaveFile("../../score.json") | ||||
| 		// defer os.Remove("../../score.json")
 | ||||
| 		// scoreboard.Submit()
 | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user