Skip to content
Permalink
Browse files

Drop glide, use dep. (#15)

  • Loading branch information...
dajohi authored and marcopeereboom committed Sep 27, 2017
1 parent 015fe33 commit 332b167c22a746f9f258b417c0d534a050c11227
Showing with 182 additions and 160 deletions.
  1. +1 −0 .gitignore
  2. +4 −4 .travis.yml
  3. +129 −0 Gopkg.lock
  4. +44 −0 Gopkg.toml
  5. +1 −1 dcrtimed/dcrtimed.go
  6. +0 −111 glide.lock
  7. +0 −35 glide.yaml
  8. +3 −9 goclean.sh
@@ -1,4 +1,5 @@
cmd/dcrtime/dcrtime
cmd/dcrtime_timestamp/dcrtime_timestamp
dcrtimed/dcrtimed
vendor/
*~
@@ -1,12 +1,12 @@
language: go
go:
- 1.7.x
- 1.8.x
- 1.9.x
sudo: false
install:
- go get -v github.com/Masterminds/glide
- glide install
- go install $(glide nv)
- go get -v github.com/golang/dep/cmd/dep
- dep ensure
- go install ./dcrtimed/... ./cmd/...
- go get -v github.com/alecthomas/gometalinter
- gometalinter --install
script:

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,44 @@

[[constraint]]
branch = "master"
name = "github.com/btcsuite/btclog"

[[constraint]]
branch = "master"
name = "github.com/btcsuite/go-flags"

[[constraint]]
branch = "master"
name = "github.com/davecgh/go-spew"

[[constraint]]
branch = "master"
name = "github.com/decred/dcrd"

[[constraint]]
branch = "master"
name = "github.com/decred/dcrutil"

[[constraint]]
branch = "master"
name = "github.com/decred/dcrwallet"

[[constraint]]
name = "github.com/gorilla/mux"
version = "1.3.0"

[[constraint]]
branch = "master"
name = "github.com/jrick/logrotate"

[[constraint]]
name = "github.com/robfig/cron"
version = "1.0.0"

[[constraint]]
branch = "master"
name = "github.com/syndtr/goleveldb"

[[constraint]]
name = "google.golang.org/grpc"
version = "1.3.0"
@@ -87,7 +87,7 @@ func (d *DcrtimeStore) sendToBackend(w http.ResponseWriter, route, contentType,
storeHost, resp.Status, e)
}
util.RespondWithError(w, http.StatusInternalServerError,
string(bodyBuf.Bytes()))
bodyBuf.String())
return
}

This file was deleted.

This file was deleted.

@@ -13,27 +13,21 @@

set -ex

# Make sure glide is installed and $GOPATH/bin is in your path.
# $ go get -u github.com/Masterminds/glide
# $ glide install
if [ ! -x "$(type -p glide)" ]; then
exit 1
fi

# Make sure gometalinter is installed and $GOPATH/bin is in your path.
# $ go get -v github.com/alecthomas/gometalinter"
# $ gometalinter --install"
if [ ! -x "$(type -p gometalinter)" ]; then
exit 1
fi

TESTDIRS=$(go list ./... | grep -v '/vendor/')
# Automatic checks
test -z "$(gometalinter --vendor --disable-all \
--enable=gofmt \
--enable=vet \
--enable=gosimple \
--enable=unconvert \
--enable=ineffassign \
--deadline=10m ./... 2>&1 | tee /dev/stderr)"
--deadline=4m ./... 2>&1 | tee /dev/stderr)"

env GORACE="halt_on_error=1" go test -race $(glide nv)
env GORACE='halt_on_error=1' go test -race ${TESTDIRS}

0 comments on commit 332b167

Please sign in to comment.
You can’t perform that action at this time.