Jingwen Owen Ou
a4698bcf71
Add hub version to crash report
...
This adds hub version to crash report. It includes refactoring of hub version to the `version` package for reusability in `commands` package and `github` package.
2015-09-27 10:58:29 -07:00
Mislav Marohnić
12c13bb9a4
Merge pull request #799 from github/update_version_in_bootstrap_script
...
Update `script/bootstrap` to recommended Go and Ruby version
2015-09-26 19:15:56 +02:00
Mislav Marohnić
3a0f43d6d6
Add `script/ctags`
2015-09-26 18:05:35 +02:00
Mislav Marohnić
2e24486ca1
Add installer scripts for Windows and *nix platforms
...
Windows batch script heavily lifted from git-lfs,
authors @technoweenie @joshvera
0de6370b50/script/install.bat.example
2015-09-26 16:20:01 +02:00
Mislav Marohnić
b46574e613
Switch to Go 1.5 which has native cross compilation
...
We don't need `gimme` anymore to cross-compile binaries.
2015-09-26 16:19:51 +02:00
Mislav Marohnić
785005ce83
Automatically publish a GitHub release from Travis CI
...
Whenever CI processes a new git tag successfully, automatically create a
GitHub release and upload cross-compiled assets to it.
2015-06-07 02:40:40 +02:00
Mislav Marohnić
97eb02bda4
Extract tmux from cached tarball on osx
...
Faster than `brew install tmux` which depends on openssl package
2015-06-02 18:00:41 +02:00
Mislav Marohnić
5524710e64
Differentiate caches by TRAVIS_OS_NAME
2015-06-02 18:00:15 +02:00
Mislav Marohnić
1835b11e11
Revert "Remove custom Bundler to S3 cache scripts"
...
This is needed for the osx Travis environment which apparently doesn't
support built-in caching.
This reverts commit 3cba4e5dcc
.
2015-06-02 18:00:15 +02:00
Kent R. Spillner
66d98c1662
fix non-portable GNU find(1)-ism
...
GNU find(1)'s -not operator is not POSIX compliant. Use ! operator
instead in order to work with other find(1) implementations.
2015-04-22 14:59:17 -05:00
Jingwen Owen Ou
4356da27f3
Update `script/bootstrap` to recommended Go and Ruby version
2015-02-08 08:03:09 -08:00
Jingwen Owen Ou
4b725ef3b8
Change built package name to `hub-OS-CPU-VERSION`
...
Verified from Homebrew that this it can parse the version with this format (https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/version.rb#L259-L332 ). The previous URL works for `x.x.x` but not `x.x.x-rc1`.
2015-01-29 10:07:09 -08:00
Jingwen Owen Ou
38041357c0
Rename package name as `hub_OS_CPU_vVERSION`
...
Ending package name with `vVERSION` allows Homebrew to recognize the build version in `brew install`. See https://github.com/boxen/puppet-hub/pull/10#issuecomment-71783691
2015-01-27 21:55:01 -08:00
Jingwen Owen Ou
07f76ee068
Add man pages to build package
2015-01-27 21:52:47 -08:00
Fabian Raetz
38100d90cf
don't exit when "git rev-parse" fails
...
so that the version number is always echoed on stdout.
2015-01-22 14:03:13 +01:00
Nicolas Braud-Santoni
6b23287f4e
Fix package's file extensions
...
Tarballs are traditionally .tar.gz, not .gz.tar
2015-01-21 17:37:35 +01:00
Jingwen Owen Ou
6f53c2aadd
Improve package script
...
* Friendly OS name for packaged zips
* Options to skip test and toolchain building
* Fix problems running on Windows
2014-12-25 17:31:22 -08:00
E.J. Finneran
cc56a7113e
Allow version script to run through even if certain calls fail
...
When hub is installed via Homebrew, Homebrew does a shallow clone of the
hub repo and so the describe --tags call in this script fails and bash
halts the script there.
Allowing the script to turn through will allow the fallback block to run.
Closes #745 [ci skip]
2014-12-24 22:26:30 -08:00
Mislav Marohnić
3cba4e5dcc
Remove custom Bundler to S3 cache scripts
...
This is now handled by Travis
2014-12-24 14:39:20 -08:00
Mislav Marohnić
4e12d8f338
Restore tmux & zsh inside Travis container
...
Conflicts:
.travis.yml
script/bootstrap
2014-12-24 14:39:20 -08:00
Mislav & Owen
283782497b
Make `script/build` compatible with Windows
...
The best way to run this is in the GitHub for Windows shell.
2014-12-20 17:57:39 -08:00
Mislav & Owen
d01968c266
Rewrite `script/version` in bash
2014-12-20 17:57:14 -08:00
Jingwen Owen Ou
667023cc23
Opt out autoupdate by default.
...
This makes our build scripts even more simpler. To build with autoupdate, run `go build -tags autoupdate`
2014-11-30 22:17:17 -08:00
Jingwen Owen Ou
1eb74c35cf
Pull back code to set up GOPATH for build
...
If there’s no GOPATH set up locally, Go won’t be able to find sub packages. This is due to changes in af9163b699
.
2014-11-30 19:26:45 -08:00
Jingwen Owen Ou
4fd4ce331d
Change build script and package script to use `go build` directly
2014-11-30 09:24:58 -08:00
Jingwen Owen Ou
6815930a6d
Include git tag SHA in build
...
Use the `-ldflags` to change version at the linker. See http://golang.org/cmd/ld .
Issue: https://github.com/github/hub/issues/672#issuecomment-62040388
2014-11-11 22:51:03 -08:00
Jingwen Owen Ou
8d41c3da0e
Typo in build script to disable update
...
Also fix a output typo in autoupdate which is never runs
2014-10-20 08:50:07 -07:00
Owen Ou
c8ffd06ec3
Build Hub in a temporary dir for cukes
...
We need to run the packaging script for every platform using a Vagrant box. During the packaging step, cukes are run. However, the workspace is shared between host and the Vagrant box. Instead of cleaning up the built binary for each platform, build it into a temporary dir.
2014-10-15 16:18:28 -07:00
Owen Ou
43e1abcb72
Use `IO.popen` to execute command
2014-10-15 15:33:14 -07:00
Owen Ou
9fc5f2ad72
Check Process.exitstatus since Process.existed? is always true
2014-10-15 13:05:22 -07:00
Owen Ou
9e88c9c377
Run bootstrap script before test
2014-10-14 08:56:57 -07:00
Owen Ou
e61fb24970
Run tests as part of the packaging process
2014-10-14 08:39:04 -07:00
Owen Ou
df0c90f3c7
Add version to build artifact
2014-10-14 08:32:06 -07:00
Jingwen Owen Ou
69660ca452
Clean up package script
...
* Prefer Ruby script to `gotask` script for packaging task
* Clean up Vagrant file
* Prefer `gox` to `goxc`
2014-10-13 23:58:52 -07:00
Jingwen Owen Ou
cc816c9df8
Provide option to build `hub` without autoupdate
2014-09-20 10:15:42 -07:00
Mislav Marohnić
24add1e38a
Merge remote-tracking branch 'origin/master' into master-to-gh
2014-04-11 18:05:59 +02:00
Mislav Marohnić
0bf12119ea
Update package name in script/godep
2014-04-11 15:40:25 +02:00
Jingwen Owen Ou
2f2f841df5
No more @wip in cukes
2014-04-10 16:51:18 -07:00
Jingwen Owen Ou
21b8711772
Extract out script/godep for running any Go command
2014-02-21 08:12:11 -08:00
Mislav Marohnić
8007439bf2
Skip caching dependencies if Amazon secret is unavailable
...
Fixes CI in forked environment and enables usage of `cached-bundle`
script to just restore caches from S3 but never attempt to write them.
2014-02-12 14:10:13 +01:00
Mislav Marohnić
38db23dd62
Improve bootstrap, build and test scripts
...
Old `script/bootstrap` & `script/build` were unfriendly to Go newbies
because they require the user having GOPATH set in their environment,
and either `godep` installed or `hg` to be able to fetch godep.
However, since dependencies are vendored, we don't have any real build
dependencies except Go itself.
- `script/bootstrap` now checks Go and installs Ruby test bundle
- `script/build` skips compiling if binary is up to date
- `script/test` runs both Go and Cucumber test suites
2014-02-07 12:44:56 +01:00
Mislav Marohnić
13fe9ec2e7
Merge branch 'gh-history' into gh
...
Conflicts:
.gitignore
.travis.yml
Gemfile
Gemfile.lock
script/test
2014-02-02 19:49:50 +01:00
Jingwen Owen Ou
9b2d896a97
Add -t to mktemp in script/make
2014-01-13 10:02:23 -08:00
David Calavera
528ff8d4d2
Do not try to download the git completion script.
2014-01-10 14:20:31 +01:00
David Calavera
9a1e07057b
Install git's completion.
2014-01-10 12:22:31 +01:00
Jingwen Owen Ou
c5daf0afd1
Merge branch 'master' into enable_bash_completion_test
2014-01-09 22:40:40 -08:00
Jingwen Owen Ou
d0eeb375bc
Add comments to scripts
2014-01-07 14:22:14 -08:00
Jingwen Owen Ou
e385ccee0d
Add script/make for homebrew build
2014-01-07 14:21:50 -08:00
Jingwen Owen Ou
16545d5c16
Rename script/release to script/package
2014-01-07 08:44:34 -08:00
Jingwen Owen Ou
a9027afcd2
Use `gotask package` in script/release
2014-01-07 07:56:25 -08:00
Jingwen Owen Ou
d7ea284e4a
Explicitly build to gh
2014-01-02 17:14:00 -08:00
Jingwen Owen Ou
4daf45dd62
Update README to install/update from source
...
We lock down dependencies with Godep so `go build` won't work
2014-01-01 11:18:24 -08:00
Jingwen Owen Ou
91a5d17110
Ignore wip tests
2013-12-30 23:37:33 -08:00
Jingwen Owen Ou
0fb53d5cc4
try to use script/ruby-test
2013-12-30 23:34:14 -08:00
Jingwen Owen Ou
8471f1600a
Move release dependency to script/release
2013-12-30 22:04:20 -08:00
Jingwen Owen Ou
334a5ae179
Move goxc to bootstrap script
2013-12-17 14:30:13 -08:00
Mislav Marohnić
aadc8418d9
Add more docs to dependencies-caching scripts
...
[ci skip]
2013-12-10 13:29:04 +01:00
Mislav Marohnić
e4641544de
Cache bundle results on Travis to S3
...
Hopefully speeds up builds
2013-12-07 15:40:31 +01:00
Jingwen Owen Ou
651a1fa3b3
Use go build without all pacakges
2013-12-02 06:33:24 -08:00
Jingwen Owen Ou
0210d4c638
Upgrade to Go 1.2
2013-12-01 22:03:20 -08:00
Jingwen Owen Ou
a79dd3cb4e
Fix travis path
2013-11-14 08:50:43 -08:00
Jingwen Owen Ou
597c48afa3
Add bash debug
2013-11-14 08:46:34 -08:00
Jingwen Owen Ou
a98278ac15
Update scripts to point to godep
2013-11-14 08:39:25 -08:00
Mislav Marohnić
755d5aa06d
Detect tmux and run shell completion tests
2013-11-14 16:05:56 +01:00
Jingwen Owen Ou
d718f3be0c
Rename to cross-compile
2013-10-23 15:20:47 -07:00
Jingwen Owen Ou
2e2b21bb40
Rename task to release
2013-10-23 15:09:27 -07:00
Jingwen Owen Ou
6547dc388d
Add gotask script to build gh
2013-10-23 15:00:57 -07:00
Jingwen Owen Ou
ebc91a30f9
Add #! to scripts
2013-10-10 20:32:46 -07:00
Jingwen Owen Ou
abbc4113a3
Add some basic scripts
2013-10-10 20:26:16 -07:00
Mislav Marohnić
b7b8d3d7a1
update bundle location in syntax warnings script
2013-08-10 01:37:18 +02:00
Mislav Marohnić
5fbd7c75bd
add script/test for running tests
...
Instruct it to fail on Ruby syntax warnings coming from only the code in
this project.
2013-07-10 00:05:41 +02:00