2021-03-17 12:09:09 +00:00
|
|
|
image: golang:1.15
|
|
|
|
|
|
|
|
pipelines:
|
|
|
|
default:
|
|
|
|
- parallel:
|
|
|
|
- step:
|
|
|
|
name: Test and Build
|
|
|
|
script:
|
|
|
|
- go mod vendor
|
|
|
|
- go mod tidy
|
2021-03-18 08:05:47 +00:00
|
|
|
- go test -v
|
2021-03-18 07:52:33 +00:00
|
|
|
- mkdir build
|
2021-03-17 12:09:09 +00:00
|
|
|
- go build -o build/gostations github.com/gmgauthier/gostations
|
|
|
|
- step:
|
|
|
|
name: Lint code
|
|
|
|
image: golangci/golangci-lint:v1.31.0
|
|
|
|
script:
|
|
|
|
- golangci-lint run -v
|