Skip to content

Commit

Permalink
Update TravisCI to goclean script.
Browse files Browse the repository at this point in the history
Also, correct a couple of issues found by running the script.
  • Loading branch information
davecgh committed Dec 23, 2014
1 parent 968b6da commit 9c8ee93
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
22 changes: 10 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package btcdb_test

import (
"fmt"

"github.com/conformal/btcdb"
_ "github.com/conformal/btcdb/memdb"
"github.com/conformal/btcnet"
Expand Down
4 changes: 2 additions & 2 deletions ldb/operational_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 9c8ee93

Please sign in to comment.