Skip to content

Commit

Permalink
use Go 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Nov 23, 2015
1 parent 2a7d29f commit 28b4994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
language: go
go:
- 1.3
- 1.5
env: PATH=/home/travis/gopath/bin:$PATH
install:
- go get github.com/laher/goxc
- sudo apt-get update
- DEBIAN_FRONTEND=noninteractive sudo apt-get install -y rpm devscripts debhelper
- mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
script:
- goxc -t
- make all
after_script:
- make cover
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BIN = mkr
VERSION = $$(git describe --tags --always --dirty)

BUILD_FLAGS = -ldflags "\
-X main.Version \"$(VERSION)\" \
-X main.Version=$(VERSION) \
"

all: clean cross lint test
Expand All @@ -22,7 +22,7 @@ lint: testdeps
test ! -s $(LINT_RET)

cross: deps
goxc -tasks='xc archive' -bc 'linux,!arm darwin' -d . -build-ldflags "-X main.Version \"$(VERSION)\"" -resources-include='README*'
goxc -tasks='xc archive' -bc 'linux,!arm darwin' -d . -build-ldflags "-X main.Version=$(VERSION)" -resources-include='README*'
cp -p $(PWD)/snapshot/linux_amd64/mkr $(PWD)/snapshot/mkr_linux_amd64
cp -p $(PWD)/snapshot/linux_386/mkr $(PWD)/snapshot/mkr_linux_386
cp -p $(PWD)/snapshot/darwin_amd64/mkr $(PWD)/snapshot/mkr_darwin_amd64
Expand Down

0 comments on commit 28b4994

Please sign in to comment.