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: |
|
|
|
|
go get github.com/mattn/goveralls
|
2021-04-03 17:16:46 +00:00
|
|
|
GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint
|
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
|
|
|
|
|