mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +00:00
Update for recent TravisCI changes.
Also, override the struct tag checking which is broken in the latest go vet.
This commit is contained in:
parent
116736ee73
commit
979d67627f
2 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- go1.3
|
- 1.3.3
|
||||||
- release
|
- 1.4.1
|
||||||
sudo: false
|
sudo: false
|
||||||
before_install:
|
before_install:
|
||||||
- gotools=golang.org/x/tools
|
- gotools=golang.org/x/tools
|
||||||
- if [ "$TRAVIS_GO_VERSION" = "release" ] || [ "$TRAVIS_GO_VERSION" = "go1.3.3" ]; then gotools=code.google.com/p/go.tools; fi
|
- if [ "$TRAVIS_GO_VERSION" = "go1.3.3" ]; then gotools=code.google.com/p/go.tools; fi
|
||||||
install:
|
install:
|
||||||
- go get -d -t -v ./...
|
- go get -d -t -v ./...
|
||||||
- go get -v $gotools/cmd/cover
|
- go get -v $gotools/cmd/cover
|
||||||
|
|
|
@ -13,7 +13,7 @@ set -e
|
||||||
test -z $(gofmt -l -w . | tee /dev/stderr)
|
test -z $(gofmt -l -w . | tee /dev/stderr)
|
||||||
test -z $(goimports -l -w . | tee /dev/stderr)
|
test -z $(goimports -l -w . | tee /dev/stderr)
|
||||||
test -z $(golint ./... | grep -v "ALL_CAPS" | grep -v "OP_" | tee /dev/stderr)
|
test -z $(golint ./... | grep -v "ALL_CAPS" | grep -v "OP_" | tee /dev/stderr)
|
||||||
go vet ./...
|
go tool vet -structtags=false .
|
||||||
env GORACE="halt_on_error=1" go test -v -race ./...
|
env GORACE="halt_on_error=1" go test -v -race ./...
|
||||||
|
|
||||||
# Run test coverage on each subdirectories and merge the coverage profile.
|
# Run test coverage on each subdirectories and merge the coverage profile.
|
||||||
|
|
Loading…
Add table
Reference in a new issue