mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 18:00:11 +01:00
Update TravisCI to goclean script.
Also, correct a couple of issues found by running the script.
This commit is contained in:
parent
968b6da5db
commit
9c8ee93b5c
22
.travis.yml
22
.travis.yml
@ -1,17 +1,15 @@
|
||||
language: go
|
||||
go:
|
||||
- 1.2
|
||||
- release
|
||||
- tip
|
||||
go: release
|
||||
before_install:
|
||||
- gocleandeps=c16c849abae90c23419d
|
||||
- git clone https://gist.github.com/$gocleandeps.git
|
||||
- goclean=71d0380287747d956a26
|
||||
- git clone https://gist.github.com/$goclean.git
|
||||
install:
|
||||
- go get -d -t -v ./...
|
||||
- go get -v code.google.com/p/go.tools/cmd/vet
|
||||
- go get -v github.com/GeertJohan/fgt
|
||||
- go get -v github.com/golang/lint/golint
|
||||
- bash $gocleandeps/gocleandeps.sh
|
||||
script:
|
||||
- export PATH=$PATH:$HOME/gopath/bin
|
||||
- go vet ./...
|
||||
- fgt golint .
|
||||
- fgt golint memdb
|
||||
- fgt golint ldb
|
||||
- go test -v
|
||||
- bash $goclean/goclean.sh
|
||||
after_success:
|
||||
- goveralls -coverprofile=profile.cov -service=travis-ci
|
@ -6,6 +6,7 @@ package btcdb_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/conformal/btcdb"
|
||||
_ "github.com/conformal/btcdb/memdb"
|
||||
"github.com/conformal/btcnet"
|
||||
|
@ -199,7 +199,7 @@ func testBackout(t *testing.T) {
|
||||
return
|
||||
}
|
||||
if _, err := db.ExistsSha(sha); err != nil {
|
||||
t.Errorf("ExistsSha: unexpected error: %v")
|
||||
t.Errorf("ExistsSha: unexpected error: %v", err)
|
||||
}
|
||||
_, err = db.FetchBlockBySha(sha)
|
||||
if err != nil {
|
||||
@ -213,7 +213,7 @@ func testBackout(t *testing.T) {
|
||||
return
|
||||
}
|
||||
if _, err := db.ExistsSha(sha); err != nil {
|
||||
t.Errorf("ExistsSha: unexpected error: %v")
|
||||
t.Errorf("ExistsSha: unexpected error: %v", err)
|
||||
}
|
||||
_, err = db.FetchBlockBySha(sha)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user