50 Commits

Author SHA1 Message Date
Mike McQuaid
c670339c02 Fix brew-test-bot for new test DSL. 2013-01-07 23:48:10 +00:00
Mike McQuaid
05f29e7463 brew-pull: add missing require. 2013-01-02 21:27:23 +00:00
Mike McQuaid
0151bf9b14 brew-pull: cleanup installation options. 2013-01-02 21:14:03 +00:00
Mike McQuaid
49ac4f2f6a brew-test-bot: don't return success from git function 2012-12-25 19:20:20 +00:00
Mike McQuaid
b4127c6e40 brew-test-bot: more Jenkins fixes and cleanup.
* Remove the unused HTML and commenting features.
* Return a good status code.
* Print command output on failure.
* Test bottle installation.
2012-12-22 21:21:42 +00:00
Charlie Sharpsteen
89b5ee6295 brew-pull: Don't pipe diff stats through the pager
Pass the `--no-pager` flag to git when grabbing a diff summary for a patch as
there is no good reason to invoke a pager for ~2-10 lines that the user must
then exit manually.
2012-12-19 12:42:44 -08:00
Mike McQuaid
3eedfd8024 brew test-bot: handle dependencies better. 2012-12-16 19:39:54 +00:00
Aaron Suggs
f5f5c2188b brew-services: fix by using formula.plist_name.
Fixes errors like:

```
 $ brew services restart mysql
Error: Formula `mysql` not installed, #startup_plist not implemented or
no plist file found
```

Closes Homebrew/homebrew#16378.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-04 11:36:12 +00:00
Mike McQuaid
92c971fbb4 brew-test-bot: fix building hashes and cleanup. 2012-12-01 11:46:12 +00:00
Mike McQuaid
1529fcefb7 brew-test-bot: fetch before install. 2012-11-25 21:03:57 +00:00
Mike McQuaid
0d19e2be9e brew-test-bot: don't cleanup HOMEBREW_PREFIX. 2012-11-25 21:03:57 +00:00
Mike McQuaid
4c1b546d99 brew-test-bot: general cleanup. 2012-11-25 21:03:57 +00:00
Mike McQuaid
248276839e brew-test-bot: support commits as arguments. 2012-11-25 21:03:46 +00:00
Mike McQuaid
e4045fa7e5 brew-test-bot: general cleanup. 2012-11-10 13:25:32 +00:00
Mike McQuaid
2901fd393e brew-test-bot: Cleanup and improve documentation. 2012-11-10 09:17:21 +00:00
Mike McQuaid
25442f20ec brew-test-bot: Change directory only for Git commands. 2012-11-10 09:05:31 +00:00
Mike McQuaid
d01adbc987 brew-test-bot: --cleanup (not --clean) and fetch origin. 2012-11-10 08:41:10 +00:00
Mike McQuaid
623bbb2ada brew-test-bot: print bottle output with --log. 2012-11-10 06:18:34 +00:00
Mike McQuaid
925a9572c9 brew-test-bot: add skip cleanup, setup options. 2012-11-10 06:18:34 +00:00
Adam Vandenberg
7b08e5a05c Sanity check 2012-10-19 18:56:18 -07:00
Jack Nagel
55fabe36e0 brew-unpack: don't attempt to mv the build directory
When the current working directory is the root of the build tree, copy
it instead of moving it, otherwise an exception will be raised when we
try to clean up the build tree later.

Noticed when unpacking the vim source tree from a mercurial checkout.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-16 00:56:55 -05:00
Max Howell
7aa38b5d03 Always unpack the source tarball, not the bottle 2012-09-23 20:38:16 -04:00
Max Howell
9ac477b07c brew unpack: support -gpf
-g sets up git repo. -f forces even if already there. I found these useful.
2012-09-23 18:31:10 -04:00
Christian Höltje
d56957d2f8 Prevent linkapps from creating duplicate aliases
`brew linkapps` was creating `MacVim` on the first run, then
`MacVim alias` on the second run.

Closes Homebrew/homebrew#14955.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-15 12:56:18 -07:00
Ori Peleg
fae4cbd9e8 linkapp: create Finder aliases
Symlinks to apps don't play well with Spotlight, but Finder alises do,
so let's create them instead.

Closes Homebrew/homebrew#14821.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-09 13:00:21 -07:00
Jack Nagel
c60a9ef314 brew-aspell-dictionaries: handle mirrors
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 23:13:43 -05:00
Alexis Hildebrandt
1deb3c0214 brew-aspell-dictionaries - generate aspell formulae
This script fetches the current list of aspell dictionaries from
the gnu server and generates formulae that can then be
included into the aspell formula.
This makes updating current dictionaries and adding new ones easier.

Tweaked by Mike to generate SHA1s instead of MD5s.

Closes Homebrew/homebrew#12180.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-09-03 19:02:30 -07:00
Mike McQuaid
b7f50ebf3f Add script to convert formulae from MD5 to SHA1. 2012-09-03 11:20:07 -07:00
Mike McQuaid
50fa018057 brew-test-bot: Only run brew-test if test defined. 2012-09-03 00:31:34 -07:00
Max Howell
672388d4f7 Always find git and svn without trying hard
Two wrapper scripts that find git and svn using the ENV variables we support and then searching through the PATH and looking inside Xcode.app if necessary.

Now just calling git or svn in Homebrew code will find and exec the right tool and we can stop fussing.

Apologies to @adamv who is probably unimpressed that the cmds directory has non-commands in it now. If it's consolation these are temporary pending some more work on superenv whereby some more directories are created under the superenv root.
2012-08-29 12:41:36 -04:00
Mike McQuaid
47f3fa2d2b brew-test-bot: add missing 'formula' require. 2012-08-25 13:46:16 -07:00
Max Howell
9274f7cda1 Formula.Enumerable
Deprecated Formula.all, replaced usage with more appropriate enumerable options. Just check out how much nicer `brew audit` runs now.
2012-08-21 12:09:05 -04:00
Jack Nagel
a119ee718d brew-mirror-check: update for new specs API
This was missed as part of the specs refactor.

Fixes Homebrew/homebrew#14280.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 12:05:18 -05:00
Brandon Black
bcde6432f3 Fix issues with writable? detection in brew doctor
Closes Homebrew/homebrew#13689.

Signed-off-by: Max Howell <mxcl@me.com>

There are subtle distinctions between writable? and writable_real? we don't
understand precisely why we need this, but it fixes the bugs :/
2012-08-06 22:02:38 -04:00
Misty De Meo
6542b22677 brew-test-bot: move html and css into subdirectory
Also updates the bash-completion to ignore subdirectories, rather than
specific filename patterns.
2012-07-18 08:25:07 -05:00
Adam Vandenberg
ec4b34aa08 Fix doctor's use of missing.
`brew doctor` shelled to `brew missing` and parsed the results.
When VERBOSE was true, this caused an error as extra, unexpected
output is generated.

Make missing an internal command, and give it a programmatic interface.
2012-06-12 20:03:26 -07:00
Jack Nagel
644af3696b Use "legacy" search API when completing tap names
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-12 11:58:48 -05:00
Ranmocy
84ad9d322b brew-linkapps: note where symlinks are installed
Closes Homebrew/homebrew#12619.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-07 16:06:55 -05:00
Misty De Meo
7af4622b0f Replace /usr/bin/ruby with full Framework path
Rationale: some users insist on replacing the /usr/bin/ruby symlink
to point to another ruby on their system, which may break homebrew.
Use the full Framework path instead, which is less likely to be tampered with.

This also reorganizes the brew --config checks to reflect the different path.

Fixes Homebrew/homebrew#12009.

Closes Homebrew/homebrew#12333.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-06-01 09:24:25 -05:00
lukas
b6fecf5e1d Add brew services command: a wrapper for launchctl
If a formula implements startup_plist it has out-of-the-box support by
brew services. If not it's possible to specify the path to a plist file:
`brew services couchdb-lucence /usr/local/Cellar/..../couchdb-lucene.plist`.

Fixes Homebrew/homebrew#3422.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-05-01 20:32:21 +08:00
Mike McQuaid
fe969c21ad Add ofail command and fix bottle command output. 2012-04-30 21:38:08 +08:00
Mike McQuaid
a67478488f Add Brew Test Bot for comprehensive testing.
Closes Homebrew/homebrew#11642.
2012-04-24 19:00:08 +10:00
Jack Nagel
c44cb2710b tests: replace tests script with rake-based runner
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16 23:08:32 -05:00
Jack Nagel
0452be43ac brew-leaves: fix for recent deps overhaul
Fixes Homebrew/homebrew#11567.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11 14:00:17 -05:00
Misty De Meo
3a4899ebbc brew-pull: Fix detecting issue #
Fixes a regression introduced in c27a575eb6b2dfc0d662aaab2cf9d754647fbadd
This is why I wish 1.8.x had named captures.
2012-04-11 10:22:11 -05:00
Misty De Meo
04bf4e5f89 brew-pull: add support for pulling from taps 2012-04-06 09:53:01 -05:00
Mike McQuaid
eb71d1ba71 Add brew tests command to run all unit tests. 2012-03-29 18:40:32 +11:00
Mike McQuaid
8c338a6bb1 Cleanup brew-pull code. 2012-03-29 18:30:38 +11:00
Mike McQuaid
23b84ef732 Set MACOS_VERSION as 0 on non-OSX platforms. 2012-03-18 15:43:39 +13:00
Mike McQuaid
e33937a1e3 Rename external commands directory from examples.
Fixes Homebrew/homebrew#10829.
2012-03-18 15:34:41 +13:00