feebf74e97
Before this:
$ go run mage.go lint
Error: running "/Users/sebastiaan/go/bin/golangci-lint run ./..." failed with exit code 1
exit status 1
$ go run mage.go test
Error: running "go test -race -v ./..." failed with exit code 1
exit status 1
After this:
$ go run mage.go -v lint
Running target: Lint
exec: /Users/sebastiaan/go/bin/golangci-lint run ./...
entry.go:89:6: `iamNotUsed` is unused (deadcode)
func iamNotUsed() {
^
Error: running "/Users/sebastiaan/go/bin/golangci-lint run ./..." failed with exit code 1
exit status 1
$ go run mage.go -v test
Running target: Test
exec: go test -race -v ./...
=== RUN TestRegister
...
? github.com/sirupsen/logrus/internal/testutils [no test files]
FAIL
Error: running "go test -race -v ./..." failed with exit code 1
exit status 1
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
15 lines
245 B
YAML
15 lines
245 B
YAML
language: go
|
|
go_import_path: github.com/sirupsen/logrus
|
|
git:
|
|
depth: 1
|
|
env:
|
|
- GO111MODULE=on
|
|
go: 1.15.x
|
|
os: linux
|
|
install:
|
|
- ./travis/install.sh
|
|
script:
|
|
- go run mage.go -v crossBuild
|
|
- go run mage.go -v lint
|
|
- go run mage.go -v test
|