You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wait for some minute, the binary will be packaged done.
Advanced
Define how to specify the build command.
You need install gopack before doing anything.
go get -u -v github.com/gobuild/gopack
# generate .gopack.yml
gopack init
Picke some text editor(ex: Vim), Change the script part to something else(ex: go build -tags hello)
Test package in local
I'm going to use pack a repo, then you will know how it works.
$ go get github.com/gobuild/gopack
$ cd $GOPATH/src/github.com/gobuild/gopack
$ gopack pack -o dist.zip
Packaging ...
Done
$ unzip -t dist.zip
Archive: dist.zip
testing: gopack OK
testing: README.md OK
testing: LICENSE OK
No errors detected in compressed data of dist.zip.
> GET user:codeskyblue:github_token
# github token
> GET user:codeskyblue:token
# web token, need to set in travis, ex
grABCDEFG
> SMEMBERS token:grABCDEFG:orgs
# list token orgnization, which org can upload use this token
1) "codeskyblue"
2) "gorelease"
> HGETALL orgs:codeskybule:repos
# list repos under org, and the store domain
1) "gosuv"
2) "dn-gobuild5.qbox.me"
3) "syncgit"
4) ""
> GET downloads:codeskyblue/gosuv
# total number of downloads
> GET downloads:codeskyblue/gosuv:linux-amd64
# total number of download linux-amd64 binary
> GET pageview:codeskyblue/gosuv
# download page PV