zquestz / s

Open a web search in your terminal.
MIT License
2.35k stars 114 forks source link

Auto binary update by Travis-CI #81

Closed yosmoc closed 8 years ago

yosmoc commented 8 years ago

This pull request is only my proposal of #73.

Dependencies

gox is build for multi platform. ghr is for release to the github releases page.

These commands are only used in the build and release process, not affects to the software core code.

Build

The build process is only executed by gox, when we push the tag to the repository. For example

$ git tag -a v0.2.3 -m 'Release v0.2.3' 
$ git push origin v0.2.3

Currently, the binaries are build by linux / go 1.5.3. The target os are linux, osx, and windows, 32bit / 64bit both.

Release

ghr releases the binaries to github releases page. You need to set GITHUB_TOKEN in environmental variables on Travis-CI's setting page.

zquestz commented 8 years ago

Thanks for the contribution! Can you please squash your commits?

yosmoc commented 8 years ago

Yes, now I squashed.

zquestz commented 8 years ago

Also do you have docs on the scopes required for GITHUB_TOKEN? Need to set that up.

zquestz commented 8 years ago

NM figured it out. This looks good. Going to test it for 0.3.0 =)

yosmoc commented 8 years ago

Thanks for merging!