-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.builds: fix CI and update to current BCP
Signed-off-by: Sam Whited <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
image: freebsd | ||
image: freebsd/latest | ||
packages: | ||
- go | ||
environment: | ||
GO111MODULE: 'on' | ||
sources: | ||
- https://git.sr.ht/~samwhited/cli | ||
tasks: | ||
- setup: | | ||
export PATH=$(go env GOPATH)/bin:$PATH | ||
echo 'export PATH=$(go env GOPATH)/bin:$PATH' >> ~/.buildenv | ||
go version | ||
go env | ||
GO111MODULE=off go get golang.org/dl/go1.10.7 | ||
GO111MODULE=off go get golang.org/dl/go1.11.4 | ||
GO111MODULE=off go get golang.org/dl/gotip | ||
go1.10.7 download | ||
go1.11.4 download | ||
gotip download | ||
- vet: | | ||
go get -u golang.org/x/lint/golint | ||
go get -u github.com/securego/gosec/cmd/gosec | ||
go get -u git.sr.ht/~samwhited/checkdoc | ||
echo 'export PATH=$(go env GOPATH)/bin:$PATH' >> ~/.buildenv | ||
- stable: | | ||
cd cli/ | ||
go test -v -cover ./... | ||
- lint: | | ||
cd cli/ | ||
go vet ./... | ||
- go110: | | ||
mkdir -p `go env GOPATH`/src/mellium.im/ | ||
ln -s `pwd`/cli/ `go env GOPATH`/src/mellium.im/cli | ||
cd `go env GOPATH`/src/mellium.im/cli | ||
go1.10.7 env | ||
go1.10.7 test -cover ./... | ||
- go111: | | ||
gofmt -s -l . && [ -z "$(gofmt -s -l .)" ] | ||
golint -set_exit_status ./... | ||
gosec ./... | ||
checkdoc ./... | ||
- validate: | | ||
cd cli/ | ||
go1.11.4 env | ||
go1.11.4 test -cover ./... | ||
- gotip: | | ||
go mod tidy | ||
git diff --exit-code -- go.mod go.sum | ||
- tip: | | ||
go get golang.org/dl/gotip | ||
gotip download | ||
cd cli/ | ||
gotip env | ||
gotip test -cover ./... | ||
gotip test -v -cover ./... |