chore(): Reconfigure pipeline
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ae9cb43294
commit
b52312f876
1 changed files with 37 additions and 15 deletions
42
.drone.yml
42
.drone.yml
|
@ -3,47 +3,69 @@ kind: pipeline
|
||||||
name: test
|
name: test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test-linux-amd64
|
- name: test-code
|
||||||
|
image: golang
|
||||||
|
environment:
|
||||||
|
commands:
|
||||||
|
- go get
|
||||||
|
- go test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: prepare
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- mkdir bin/
|
||||||
|
|
||||||
|
- name: build-linux-amd64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go test
|
- go build -o bin/cmw-linux-amd64
|
||||||
|
|
||||||
- name: test-darwin-amd64
|
- name: build-darwin-amd64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: darwin
|
GOOS: darwin
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go test
|
- go build -o bin/cmw-darwin-amd64
|
||||||
|
|
||||||
- name: test-windows-amd64
|
- name: build-windows-amd64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: windows
|
GOOS: windows
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go test
|
- go build -o bin/cmw-windows-amd64
|
||||||
|
|
||||||
- name: test-linux-arm64
|
- name: build-linux-arm64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go test
|
- go build -o bin/cmw-linux-arm64
|
||||||
|
|
||||||
- name: test-darwin-arm64
|
- name: build-darwin-arm64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: darwin
|
GOOS: darwin
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go test
|
- go build -o bin/cmw-darwin-arm64
|
||||||
|
|
||||||
|
- name: check-all
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- ls -ltra bin/
|
||||||
|
|
Loading…
Reference in a new issue