From 8e8be3d3497ade53bf1c5265c9cf43bb0a919733 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 21 Apr 2017 21:22:11 -0300 Subject: [PATCH 1/4] switching to codecov --- .gitignore | 1 + .travis.yml | 3 +-- Makefile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index fcf20b78c..931097223 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ goreleaser !cmd/goreleaser .glide/ coverage.out +coverage.txt diff --git a/.travis.yml b/.travis.yml index fdc47ca62..c2c229d89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,7 @@ script: - make test - test -n "$TRAVIS_TAG" || go run ./cmd/goreleaser/main.go --skip-validate --skip-publish after_success: - - go get github.com/mattn/goveralls - - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken="$COVERALLS_TOKEN" + - bash <(curl -s https://codecov.io/bash) - test -n "$TRAVIS_TAG" && go run ./cmd/goreleaser/main.go notifications: email: false diff --git a/Makefile b/Makefile index 8c00c3b65..99e274731 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,10 @@ setup: ## Install all the build and lint dependencies gometalinter --install test: ## Run all the tests - gotestcover $(TEST_OPTIONS) -covermode=count -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s + gotestcover $(TEST_OPTIONS) -covermode=atomic -coverprofile=coverage.txt $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s cover: test ## Run all the tests and opens the coverage report - go tool cover -html=coverage.out + go tool cover -html=coverage.txt 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 From 565d228b11eb7904e723b562e04a2bde9a42907f Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 21 Apr 2017 21:43:52 -0300 Subject: [PATCH 2/4] badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 085382f2d..bf66c1636 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ We appreciate your contribution. Please refer to our [contributing guidelines](C [![Release](https://img.shields.io/github/release/goreleaser/goreleaser.svg?style=flat-square)](https://github.com/goreleaser/goreleaser/releases/latest) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) [![Travis](https://img.shields.io/travis/goreleaser/goreleaser.svg?style=flat-square)](https://travis-ci.org/goreleaser/goreleaser) -[![Coverage Status](https://img.shields.io/coveralls/goreleaser/goreleaser/master.svg?style=flat-square)](https://coveralls.io/github/goreleaser/goreleaser?branch=master) +[![Codecov branch](https://img.shields.io/codecov/c/github/goreleaser/goreleaser/master.svg?style=flat-square)](https://codecov.io/gh/goreleaser/goreleaser) [![Go Report Card](https://goreportcard.com/badge/github.com/goreleaser/goreleaser?style=flat-square)](https://goreportcard.com/report/github.com/goreleaser/goreleaser) [![](https://godoc.org/github.com/goreleaser/goreleaser?status.svg&style=flat-square)](http://godoc.org/github.com/goreleaser/goreleaser) [![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg?style=flat-square)](https://saythanks.io/to/caarlos0) From b5752f1f25f0cb305132912004c56c615c3e975a Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 21 Apr 2017 21:47:45 -0300 Subject: [PATCH 3/4] go doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf66c1636..f815a0d20 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ We appreciate your contribution. Please refer to our [contributing guidelines](C [![Travis](https://img.shields.io/travis/goreleaser/goreleaser.svg?style=flat-square)](https://travis-ci.org/goreleaser/goreleaser) [![Codecov branch](https://img.shields.io/codecov/c/github/goreleaser/goreleaser/master.svg?style=flat-square)](https://codecov.io/gh/goreleaser/goreleaser) [![Go Report Card](https://goreportcard.com/badge/github.com/goreleaser/goreleaser?style=flat-square)](https://goreportcard.com/report/github.com/goreleaser/goreleaser) -[![](https://godoc.org/github.com/goreleaser/goreleaser?status.svg&style=flat-square)](http://godoc.org/github.com/goreleaser/goreleaser) +[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/goreleaser/goreleaser) [![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg?style=flat-square)](https://saythanks.io/to/caarlos0) [![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg?style=flat-square)](https://github.com/goreleaser) From 364ad3da45b5645a2cc4f2ed889999f1de878e38 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 21 Apr 2017 21:58:59 -0300 Subject: [PATCH 4/4] cleanup --- .gitignore | 4 ---- cmd/goreleaser/main.go | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 931097223..d575ed404 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,3 @@ dist/ vendor -goreleaser -!cmd/goreleaser -.glide/ -coverage.out coverage.txt diff --git a/cmd/goreleaser/main.go b/cmd/goreleaser/main.go index e327bcf61..b5cf50996 100644 --- a/cmd/goreleaser/main.go +++ b/cmd/goreleaser/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "os" @@ -17,7 +18,7 @@ var ( func main() { var app = cli.NewApp() app.Name = "goreleaser" - app.Version = version + ", commit " + commit + ", built at " + date + app.Version = fmt.Sprintf("%v, commit %v, built at %v", version, commit, date) app.Usage = "Deliver Go binaries as fast and easily as possible" app.Flags = []cli.Flag{ cli.StringFlag{