-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #8: auto build binaries on push to master
- Loading branch information
Michael Weibel
committed
Nov 17, 2017
1 parent
8145494
commit 725874c
Showing
5 changed files
with
66 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
bin/ | ||
vendor/ | ||
*.coverprofile | ||
rokka_darwin_amd64 | ||
rokka_linux_amd64 | ||
rokka_windows_amd64.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
DATE=`date -u '+%Y-%m-%d'` | ||
GIT_SHA=`git rev-parse --short HEAD` | ||
VERSION="$DATE.$GIT_SHA" | ||
|
||
gox -os="linux darwin windows" -arch="amd64" -ldflags "-X main.cliVersion=${VERSION}" ./cmd/rokka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# linting | ||
goimports -d ./ | ||
go tool vet ./ | ||
|
||
# testing | ||
go test -v ./... | ||
|
||
# coveralls.io (see https://github.com/golang/go/issues/6909 why the use of overalls) | ||
overalls -project=github.com/rokka-io/rokka-go -covermode=count | ||
goveralls -coverprofile=overalls.coverprofile -service=travis-ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters