mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	refactor: add group build for drone.
This commit is contained in:
		
							parent
							
								
									14fddbbba5
								
							
						
					
					
						commit
						62957e6f1b
					
				
							
								
								
									
										39
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										39
									
								
								.drone.yml
									
									
									
									
									
								
							| @ -9,24 +9,49 @@ clone: | |||||||
|     tags: true |     tags: true | ||||||
| 
 | 
 | ||||||
| pipeline: | pipeline: | ||||||
|  |   lint: | ||||||
|  |     image: appleboy/golang-testing | ||||||
|  |     pull: true | ||||||
|  |     group: golang | ||||||
|  |     environment: | ||||||
|  |       TAGS: netgo | ||||||
|  |       GOPATH: /srv/app | ||||||
|  |     commands: | ||||||
|  |       - make vet | ||||||
|  |       - make lint | ||||||
|  |       - make test | ||||||
|  |       - make test-vendor | ||||||
|  | 
 | ||||||
|  | lint: | ||||||
|  |     image: appleboy/golang-testing | ||||||
|  |     pull: true | ||||||
|  |     group: golang | ||||||
|  |     environment: | ||||||
|  |       TAGS: netgo | ||||||
|  |       GOPATH: /srv/app | ||||||
|  |     commands: | ||||||
|  |       - make build | ||||||
|  | 
 | ||||||
|   test: |   test: | ||||||
|     image: appleboy/golang-testing |     image: appleboy/golang-testing | ||||||
|     pull: true |     pull: true | ||||||
|  |     group: golang | ||||||
|     environment: |     environment: | ||||||
|       TAGS: netgo |       TAGS: netgo | ||||||
|       GOPATH: /srv/app |       GOPATH: /srv/app | ||||||
|     secrets: [ codecov_token ] |     secrets: [ codecov_token ] | ||||||
|     commands: |     commands: | ||||||
|       - make ssh-server |       - make ssh-server | ||||||
|       - make vet |  | ||||||
|       - make lint |  | ||||||
|       # - make test |  | ||||||
|       - make test-vendor |  | ||||||
|       - coverage all |       - coverage all | ||||||
|       - make coverage | 
 | ||||||
|       - make build |   codecov: | ||||||
|  |     image: robertstettner/drone-codecov | ||||||
|  |     secrets: [ codecov_token ] | ||||||
|  |     files: | ||||||
|  |       - .cover/coverage.txt | ||||||
|     when: |     when: | ||||||
|       event: [ push, tag, pull_request ] |       event: [ push, pull_request ] | ||||||
|  |       status: [ success ] | ||||||
| 
 | 
 | ||||||
|   publish_latest: |   publish_latest: | ||||||
|     image: plugins/docker |     image: plugins/docker | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
						Bo-Yi Wu