Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #175 from getantibody/dep
Browse files Browse the repository at this point in the history
migrate to golang/dep
  • Loading branch information
caarlos0 authored Apr 18, 2017
2 parents adc382f + 24a8e72 commit 0cf65a0
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 69 deletions.
67 changes: 67 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

[[dependencies]]
name = "github.com/getantibody/folder"
version = "v1.0.0"

[[dependencies]]
name = "github.com/stretchr/testify"
version = "^1.1.4"

[[dependencies]]
name = "github.com/urfave/cli"
version = "^1.19.1"

[[dependencies]]
branch = "master"
name = "golang.org/x/crypto"

[[dependencies]]
branch = "master"
name = "golang.org/x/sync"
29 changes: 16 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
SOURCE_FILES?=$$(glide novendor)
SOURCE_FILES?=$$(go list ./... | grep -v /vendor/)
TEST_PATTERN?=.
TEST_OPTIONS?=-race
TEST_OPTIONS?=

setup: ## Install all the build and lint dependencies
@go get -u github.com/alecthomas/gometalinter
@go get -u github.com/pierrre/gotestcover
@go get -u golang.org/x/tools/cmd/cover
@go get -u github.com/Masterminds/glide
@glide install
@gometalinter --install
go get -u github.com/alecthomas/gometalinter
go get -u github.com/golang/dep/...
go get -u github.com/pierrre/gotestcover
go get -u golang.org/x/tools/cmd/cover
dep ensure
gometalinter --install --update

test: ## Run all the tests
@gotestcover $(TEST_OPTIONS) -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
gotestcover $(TEST_OPTIONS) -covermode=count -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s

cover: test ## RUn all the tests and opens the coverage report
go tool cover -html=coverage.out

fmt: ## gofmt and goimports all go files
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done

lint: ## Run all the linters
@gometalinter --vendor --disable-all \
gometalinter --vendor --disable-all \
--enable=deadcode \
--enable=ineffassign \
--enable=gosimple \
Expand All @@ -29,13 +32,13 @@ lint: ## Run all the linters
--enable=errcheck \
--enable=vet \
--enable=vetshadow \
--deadline=1m \
--deadline=10m \
./...

ci: lint test ## Run all the tests and code checks

build: ## Build a beta version of releaser
@go build
build: ## Build a beta version
go build -o goreleaser ./cmd/antibody/main.go

# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
Expand Down
36 changes: 0 additions & 36 deletions glide.lock

This file was deleted.

20 changes: 0 additions & 20 deletions glide.yaml

This file was deleted.

0 comments on commit 0cf65a0

Please sign in to comment.