Skip to content

Commit

Permalink
Add GitHub Release Uploading to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
conortm committed Sep 1, 2015
1 parent 4d11174 commit 4907959
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ _testmain.go
# ghkeys-specific
config.yml
ghkeys
release
result
28 changes: 21 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
language: go
sudo: false
go:
- 1.4.2
- 1.5
- tip
- 1.4.2
- 1.5
- tip
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
install: make install
script:
- $HOME/gopath/bin/goveralls -service=travis-ci
- $HOME/gopath/bin/goveralls -service=travis-ci
notifications:
email: false
deploy:
provider: releases
api_key:
secure: aPoUmzlkPs5L8BHrEowO6PfypK8pe1+MZR8Pf3WWYT6MBmHsL0SCB4FW7TvGkHKFqJX/5M8cD7qCg2sgJS40nO9sk9RiQBEBY76MzXFVnvPRqVy+0PsHxY8TuFLz43gxyUXyz/WKbsFx7o+nuteZctzytTEReHQ21q7fCXGCXbw=
file:
- release/ghkeys-linux-amd64
- release/ghkeys-linux-386
- release/ghkeys-linux-arm
skip_cleanup: true
on:
repo: conortm/ghkeys
tags: true
go: 1.5
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package = github.com/conortm/ghkeys

.PHONY: install
.PHONY: release

install:
go get -t -v ./...

release:
mkdir -p release
GOOS=linux GOARCH=amd64 go build -o release/ghkeys-linux-amd64 $(package)
GOOS=linux GOARCH=386 go build -o release/ghkeys-linux-386 $(package)
GOOS=linux GOARCH=arm go build -o release/ghkeys-linux-arm $(package)

0 comments on commit 4907959

Please sign in to comment.