mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-24 04:16:27 +02:00
commit
a65f3694a3
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,6 +1,3 @@
|
|||||||
dist/
|
dist/
|
||||||
vendor
|
vendor
|
||||||
goreleaser
|
coverage.txt
|
||||||
!cmd/goreleaser
|
|
||||||
.glide/
|
|
||||||
coverage.out
|
|
||||||
|
@ -7,8 +7,7 @@ script:
|
|||||||
- make test
|
- make test
|
||||||
- test -n "$TRAVIS_TAG" || go run ./cmd/goreleaser/main.go --skip-validate --skip-publish
|
- test -n "$TRAVIS_TAG" || go run ./cmd/goreleaser/main.go --skip-validate --skip-publish
|
||||||
after_success:
|
after_success:
|
||||||
- go get github.com/mattn/goveralls
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken="$COVERALLS_TOKEN"
|
|
||||||
- test -n "$TRAVIS_TAG" && go run ./cmd/goreleaser/main.go
|
- test -n "$TRAVIS_TAG" && go run ./cmd/goreleaser/main.go
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
4
Makefile
4
Makefile
@ -11,10 +11,10 @@ setup: ## Install all the build and lint dependencies
|
|||||||
gometalinter --install
|
gometalinter --install
|
||||||
|
|
||||||
test: ## Run all the tests
|
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
|
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
|
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
|
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done
|
||||||
|
@ -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)
|
[![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)
|
[![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)
|
[![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)
|
[![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)
|
[![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)
|
[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg?style=flat-square)](https://github.com/goreleaser)
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ var (
|
|||||||
func main() {
|
func main() {
|
||||||
var app = cli.NewApp()
|
var app = cli.NewApp()
|
||||||
app.Name = "goreleaser"
|
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.Usage = "Deliver Go binaries as fast and easily as possible"
|
||||||
app.Flags = []cli.Flag{
|
app.Flags = []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user