Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from Jimdo/gorelease
Browse files Browse the repository at this point in the history
TOOLS-13 Build and release using goreleaser on Travis
  • Loading branch information
seiffert committed Jul 11, 2017
2 parents 5c19c0f + 8fdbeae commit 3e91f7f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
archive:
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format: binary

8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- 1.7

script:
- make ci
- make test

after_success:
- test -n "$TRAVIS_TAG" && make release
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ci:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh
test:
./script/test

release:
curl -sL https://git.io/goreleaser | bash
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[![Download on GoBuilder](http://badge.luzifer.io/v1/badge?title=Download%20on&text=GoBuilder)](https://gobuilder.me/github.com/Jimdo/autoscaling-file-sd)
[![License: Apache v2.0](https://badge.luzifer.io/v1/badge?color=5d79b5&title=license&text=Apache+v2.0)](http://www.apache.org/licenses/LICENSE-2.0)
[![Go Report Card](https://goreportcard.com/badge/github.com/Jimdo/autoscaling-file-sd)](https://goreportcard.com/report/github.com/Jimdo/autoscaling-file-sd)

Expand Down
5 changes: 5 additions & 0 deletions script/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
packages=$(go list ./... | grep -v /vendor/)
echo $packages | xargs go vet
echo $packages | xargs go test -v

0 comments on commit 3e91f7f

Please sign in to comment.