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