Skip to content

Commit

Permalink
Add goreleaser & travis configs
Browse files Browse the repository at this point in the history
  • Loading branch information
elsesiy committed Jul 15, 2019
1 parent 778e7e2 commit 7620c9b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
before:
hooks:
- go mod download
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
brews:
- github:
owner: codetales
name: homebrew-tap
folder: Formula
description: "Donner is a generic command wrapper. It let's you define strategies to wrap commands in things like 'docker-compose exec' or 'docker container run'."
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-dev"
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: go
go: '1.12'
env:
- GO111MODULE=on

script: go test -v ./... && go build

deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
notifications:
email: false
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
This is can come in very handy when developing applications in containers.
Donner allows defining a wrapping strategy on a per command basis. So you don't have to worry which service to use or whether you should use `docker-compose exec` or `docker-compose run` when executing a command.

## Installation

`brew install codetales/tap/donner` or download latest binary from the [releases](https://github.com/codetales/donner/releases) page.

## Examples

Example config for a ruby project
Expand Down Expand Up @@ -96,4 +100,4 @@ alias irb='donner run --fallback --strict irb'
* Ensure useful error messages and test failure cases
* Add missing flags to the handlers (volumes, ...)
* Add documentation
* Setup bash/zsh completion
* Setup bash/zsh completion
2 changes: 1 addition & 1 deletion donner.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var ErrMissingCommand = errors.New("no command for execution specified")
func main() {
app := cli.NewApp()
app.Name = "Donner"
app.Version = "0.3.0"
app.Version = "0.1.0"
app.Usage = `Donner is a generic command wrapper. It let's you define strategies to wrap commands in things like 'docker-compose exec' or 'docker container run'.
This is can come in very handy when developing applications in containers. Donner allows defining a wrapping strategy on a per command basis.
So you don't have to worry which service to use or whether you should use 'docker-compose exec' or 'docker-compose run' when executing a command.`
Expand Down

0 comments on commit 7620c9b

Please sign in to comment.