Run lint and tests in parallel.
This commit is contained in:
		
							
								
								
									
										11
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -19,6 +19,8 @@ steps: | |||||||
|       CGO_ENABLED: 0 |       CGO_ENABLED: 0 | ||||||
|     commands: |     commands: | ||||||
|       - golangci-lint run |       - golangci-lint run | ||||||
|  |     depends_on: | ||||||
|  |       - notify-start | ||||||
|  |  | ||||||
|   - name: test |   - name: test | ||||||
|     image: golang:1.13.1-alpine |     image: golang:1.13.1-alpine | ||||||
| @@ -26,6 +28,8 @@ steps: | |||||||
|       CGO_ENABLED: 0 |       CGO_ENABLED: 0 | ||||||
|     commands: |     commands: | ||||||
|       - go test ./... |       - go test ./... | ||||||
|  |     depends_on: | ||||||
|  |       - notify-start | ||||||
|  |  | ||||||
|   - name: docker |   - name: docker | ||||||
|     image: plugins/docker |     image: plugins/docker | ||||||
| @@ -39,6 +43,9 @@ steps: | |||||||
|         from_secret: dockerhub_password |         from_secret: dockerhub_password | ||||||
|       repo: pztrn/discordrone |       repo: pztrn/discordrone | ||||||
|       auto_tag: true |       auto_tag: true | ||||||
|  |     depends_on: | ||||||
|  |       - test | ||||||
|  |       - lint | ||||||
|  |  | ||||||
|   - name: notify-end |   - name: notify-end | ||||||
|     when: |     when: | ||||||
| @@ -56,4 +63,6 @@ steps: | |||||||
|           **{{repo.name}}#{{build.number}}@{{commit.sha}}** built in {{since build.startedint}} and pushed to hub.docker.com. |           **{{repo.name}}#{{build.number}}@{{commit.sha}}** built in {{since build.startedint}} and pushed to hub.docker.com. | ||||||
|         {{ else }} |         {{ else }} | ||||||
|           **{{repo.name}}#{{build.number}}@{{commit.sha}}** failed. See {{build.link}}. |           **{{repo.name}}#{{build.number}}@{{commit.sha}}** failed. See {{build.link}}. | ||||||
|         {{/success}}" |         {{/success}}" | ||||||
|  |     depends_on: | ||||||
|  |       - docker | ||||||
		Reference in New Issue
	
	Block a user