mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
Merge pull request #206 from goreleaser/gogettable
make goreleaser installable via go get #205
This commit is contained in:
commit
3c9a8abb6e
@ -5,9 +5,9 @@ install:
|
||||
- gem install fpm
|
||||
script:
|
||||
- make test
|
||||
- test -n "$TRAVIS_TAG" || go run ./cmd/goreleaser/main.go --skip-validate --skip-publish
|
||||
- test -n "$TRAVIS_TAG" || go run main.go --skip-validate --skip-publish
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
- test -n "$TRAVIS_TAG" && go run ./cmd/goreleaser/main.go
|
||||
- test -n "$TRAVIS_TAG" && go run main.go
|
||||
notifications:
|
||||
email: false
|
||||
|
7
Makefile
7
Makefile
@ -37,11 +37,8 @@ lint: ## Run all the linters
|
||||
|
||||
ci: lint test ## Run all the tests and code checks
|
||||
|
||||
build: ## Build a beta version of releaser
|
||||
go build -o goreleaser ./cmd/goreleaser/main.go
|
||||
|
||||
install: ## Install the binary into $GOPATH/bin
|
||||
go install ./cmd/...
|
||||
build: ## Build a beta version of goreleaser
|
||||
go build
|
||||
|
||||
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
||||
help:
|
||||
|
@ -1,7 +1,6 @@
|
||||
homepage: &homepage http://goreleaser.github.io
|
||||
description: &description Deliver Go binaries as fast and easily as possible
|
||||
build:
|
||||
main: ./cmd/goreleaser/main.go
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
|
@ -1,4 +1,4 @@
|
||||
package goreleaser
|
||||
package goreleaserlib
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
@ -1,4 +1,4 @@
|
||||
package goreleaser
|
||||
package goreleaserlib
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
@ -5,7 +5,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/goreleaser/goreleaser"
|
||||
"github.com/goreleaser/goreleaser/goreleaserlib"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
@ -41,7 +41,7 @@ func main() {
|
||||
}
|
||||
app.Action = func(c *cli.Context) error {
|
||||
log.Printf("Running goreleaser %v\n", version)
|
||||
if err := goreleaser.Release(c); err != nil {
|
||||
if err := goreleaserlib.Release(c); err != nil {
|
||||
return cli.NewExitError(err.Error(), 1)
|
||||
}
|
||||
return nil
|
Loading…
x
Reference in New Issue
Block a user