2019-11-17 14:01:03 -08:00
|
|
|
box: golang
|
|
|
|
build:
|
|
|
|
steps:
|
|
|
|
- setup-go-workspace
|
|
|
|
- script:
|
2021-04-03 10:16:46 -07:00
|
|
|
name: go version
|
|
|
|
code: go version
|
|
|
|
- script:
|
|
|
|
name: install tools
|
2019-11-17 14:01:03 -08:00
|
|
|
code: |
|
2022-08-13 07:14:26 -07:00
|
|
|
go install github.com/mattn/goveralls@latest
|
|
|
|
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
2019-11-17 14:01:03 -08:00
|
|
|
- script:
|
|
|
|
name: go get
|
|
|
|
code: |
|
|
|
|
go get ./...
|
|
|
|
- script:
|
|
|
|
name: go build
|
|
|
|
code: |
|
|
|
|
go build ./...
|
2021-04-03 10:16:46 -07:00
|
|
|
- script:
|
|
|
|
name: golangci-lint
|
|
|
|
code: |
|
|
|
|
golangci-lint run
|
2019-11-17 14:01:03 -08:00
|
|
|
- script:
|
|
|
|
name: go test
|
|
|
|
code: |
|
|
|
|
go test ./...
|
|
|
|
- script:
|
|
|
|
name: coveralls
|
|
|
|
code: |
|
|
|
|
goveralls -v -service wercker.com -repotoken $COVERALLS_TOKEN
|
|
|
|
|