Skip to content

Commit

Permalink
Cleanup dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed May 7, 2020
1 parent 1da24db commit 13c24dd
Show file tree
Hide file tree
Showing 4 changed files with 457 additions and 20 deletions.
18 changes: 8 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
check-license shorten-lines salus validate watch-blocks \
watch-transactions watch-balances watch-reconciliations \
view-block-benchmarks view-account-benchmarks
LICENCE_SCRIPT=addlicense -c "Coinbase, Inc." -l "apache" -v
GO_INSTALL=GO111MODULE=off go get
ADDLICENSE_CMD=go run github.com/google/addlicense
ADDLICENCE_SCRIPT=${ADDLICENSE_CMD} -c "Coinbase, Inc." -l "apache" -v
GOLINES_CMD=go run github.com/segmentio/golines
GOVERALLS_CMD=go run github.com/mattn/goveralls
TEST_SCRIPT=go test -v ./internal/...

deps:
go get ./...
go get github.com/stretchr/testify
${GO_INSTALL} github.com/google/addlicense
${GO_INSTALL} github.com/segmentio/golines
${GO_INSTALL} github.com/mattn/goveralls

lint:
golangci-lint run -v \
Expand All @@ -28,16 +26,16 @@ test:

test-cover:
${TEST_SCRIPT} -coverprofile=c.out -covermode=count
goveralls -coverprofile=c.out -repotoken ${COVERALLS_TOKEN}
${GOVERALLS_CMD} -coverprofile=c.out -repotoken ${COVERALLS_TOKEN}

add-license:
${LICENCE_SCRIPT} .
${ADDLICENCE_SCRIPT} .

check-license:
${LICENCE_SCRIPT} -check .
${ADDLICENCE_SCRIPT} -check .

shorten-lines:
golines -w --shorten-comments internal cmd
${GOLINES_CMD} -w --shorten-comments internal cmd

salus:
docker run --rm -t -v ${PWD}:/home/repo coinbase/salus
Expand Down

0 comments on commit 13c24dd

Please sign in to comment.