-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1668674
commit 879152a
Showing
25 changed files
with
972 additions
and
1,054 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Simple go lint and test. | ||
os: linux | ||
dist: bionic | ||
language: go | ||
go: | ||
- 1.15.x | ||
install: | ||
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest | ||
script: | ||
- make test |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
GOLANGCI_ARGS=-D exhaustivestruct | ||
|
||
all: | ||
@echo "try: make test" | ||
|
||
test: lint | ||
go test -race -covermode=atomic ./... | ||
# Test 32 bit OSes. | ||
GOOS=linux GOARCH=386 go build . | ||
GOOS=freebsd GOARCH=386 go build . | ||
|
||
lint: | ||
GOOS=linux golangci-lint run --enable-all $(GOLANGCI_ARGS) | ||
GOOS=darwin golangci-lint run --enable-all $(GOLANGCI_ARGS) | ||
GOOS=windows golangci-lint run --enable-all $(GOLANGCI_ARGS) | ||
GOOS=freebsd golangci-lint run --enable-all $(GOLANGCI_ARGS) |
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
Oops, something went wrong.