1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00

Merge pull request #204 from goreleaser/codecov

switching to codecov
This commit is contained in:
Carlos Alexandro Becker 2017-04-21 22:02:02 -03:00 committed by GitHub
commit a65f3694a3
5 changed files with 8 additions and 11 deletions

5
.gitignore vendored
View File

@ -1,6 +1,3 @@
dist/
vendor
goreleaser
!cmd/goreleaser
.glide/
coverage.out
coverage.txt

View File

@ -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

View File

@ -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

View File

@ -11,9 +11,9 @@ 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)
[![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)

View File

@ -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{