Skip to content

Commit

Permalink
[build] Create the archives to upload with the github release
Browse files Browse the repository at this point in the history
  • Loading branch information
hbouvier committed Oct 27, 2015
1 parent b9f7c06 commit 02a84e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
coverage.out
release/
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GOCC=go
VERSION=v1.0.3
# To Compile the linux version using docker simply invoke the makefile like this:
#
# make GOCC="docker run --rm -t -v ${GOPATH}:/go hbouvier/go-lang:1.5"
Expand All @@ -21,3 +22,19 @@ test:

get-deps:
${GOCC} get github.com/hashicorp/logutils

release_darwin_amd64:
rm -rf "release/bin/darwin_amd64" "${GOPATH}/bin/watchgod"
mkdir -p release/bin/darwin_amd64
go install github.com/hbouvier/watchgod
cp ${GOPATH}/bin/watchgod release/bin/darwin_amd64/

release_linux_adm64:
rm -rf "release/bin/linux_adm64" "${GOPATH}/bin/watchgod"
mkdir -p release/bin/linux_adm64
docker run --rm -t -v ${GOPATH}:/go hbouvier/go-lang:1.5 install github.com/hbouvier/watchgod
cp ${GOPATH}/bin/watchgod release/bin/linux_adm64/

archives: release_darwin_amd64 release_linux_adm64
cd release && zip -r watchgod_${VERSION}.zip bin/
cd release && COPYFILE_DISABLE=1 tar cvzf watchgod_${VERSION}.tgz bin/

0 comments on commit 02a84e8

Please sign in to comment.