mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-19 07:41:32 +02:00
update build
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
language: go
|
||||
go:
|
||||
- 1.12.x
|
||||
- 1.13.x
|
||||
before_install:
|
||||
- mkdir -p $GOPATH/bin
|
||||
# Download the `dep` binary to bin folder in $GOPATH
|
||||
- curl -sLo $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v0.5.3/dep-linux-amd64
|
||||
- chmod +x $GOPATH/bin/dep
|
||||
# download super-linter: golangci-lint
|
||||
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||
install:
|
||||
- dep ensure
|
||||
- go mod vendor
|
||||
script:
|
||||
- golangci-lint run --enable-all -e G402 -D gochecknoglobals
|
||||
- go test ./...
|
||||
|
||||
Reference in New Issue
Block a user