2916 Commits

Author SHA1 Message Date
Baptiste Fontaine
362da26ff6 test-bot: ensure install_passed is always defined 2015-10-14 17:40:14 +02:00
Vlad Shablinsky
e04a463f11 update: allow updating from local branch
Closes Homebrew/homebrew#44893.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14 14:01:27 +01:00
Mike McQuaid
667fa65be8 test-bot: make master builds faster.
Just do a few things rather than doing e.g. a full compile.

Closes Homebrew/homebrew#44936.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14 14:01:11 +01:00
Xu Cheng
d1222971f6 test-bot: update diff_start_sha1 unconditionally
See bfab4b0e65db4667ab09159b1040701fa75ec687

Closes Homebrew/homebrew#44889.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-14 00:04:57 +08:00
Søren Brokær
ed42b2eb39 let the user know what exactly was already tapped
Closes Homebrew/homebrew#44843.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-13 14:03:42 +02:00
Xu Cheng
76a5ba6ae5 test: allow writing to certain var directories
Closes Homebrew/homebrew#44458.

Closes Homebrew/homebrew#44773.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 11:54:10 +08:00
Xu Cheng
52de8d9373 postinstall: sanitize ARGV options 2015-10-10 11:19:22 +08:00
Xu Cheng
8c4bd3dae2 audit: use ARGV.resolved_formula
There are audit rules which check cellar. Therefore, we need
`ARGV.resolved_formula` to get proper spec and prefix.

Closes Homebrew/homebrew#44781.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:34:43 +08:00
Xu Cheng
fe3b69d388 test: sanitize ARGV options
Otherwise, it will use the wrong prefix to test devel/HEAD install.
2015-10-10 01:34:42 +08:00
Xu Cheng
51a585e0b4 search: don't fail because broken formulae
Fixes Homebrew/homebrew#44687.

Closes Homebrew/homebrew#44770.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:33:44 +08:00
Xu Cheng
1ae44d4429 use directory? to check rack existence 2015-10-09 19:06:08 +08:00
Xu Cheng
ee332c4550 handle TapFormulaWithOldnameAmbiguityError
Closes Homebrew/homebrew#44705.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:02:33 +08:00
Daniel Lee Harple
6b3b398858 audit: fix GitHub repository audit
In the data returned from the GitHub API, “watchers_count” is actually the
number of stars.

See https://developer.github.com/v3/activity/starring/#starring-vs-watching

Closes Homebrew/homebrew#44477.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 19:48:24 +08:00
Andrew Janke
4c80bf4324 audit: add check for 'head' and 'head do' both present
Closes Homebrew/homebrew#44626.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-07 09:41:24 +02:00
Rakesh
2d60187e1a brew upgrade: provides an option --cleanup
Closes Homebrew/homebrew#44305.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 14:05:11 +08:00
Baptiste Fontaine
f629bb4e0f command: fail early if no command is given
Closes Homebrew/homebrew#44450.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-06 09:58:05 +02:00
Forrest Fleming
e0f9994542 Remove incomplete files in cache on brew cleanup
Closes Homebrew/homebrew#44182.
Closes Homebrew/homebrew#44349.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-06 15:13:25 +08:00
Dominyk Tiller
bdd27d7cc0 doctor: whitelist Paragon NTFS dylib
Closes Homebrew/homebrew#44542.
2015-10-02 23:43:14 +01:00
Charlie Egan
a90363b605 doctor: minor grammar correction: 'pluralize' breakage
Closes Homebrew/homebrew#44497.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-02 19:06:05 +02:00
Xu Cheng
6b3704162f doctor: point Xcode download to App Store for El Capitan 2015-10-01 14:39:25 +08:00
Xu Cheng
3b520cf195 cache taps
There are plenty of IO operations inside Tap object, and it will be more
when implementing formula alias reverse look up(e.g. list all of alias
names for a formula). So let's cache them.

Some benchmark:

$ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null
Before: 6.40s user 2.42s system 96% cpu 9.134 total
After: 4.75s user 0.77s system 97% cpu 5.637 total

Closes Homebrew/homebrew#44377.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 16:25:30 +08:00
Xu Cheng
6240e896b2 doctor: always print to stderr
This can help to solve the broken layout of doctor.out in brew gist-logs
2015-09-30 16:20:18 +08:00
Xu Cheng
30795ddc29 doctor: temporary add -R flag in chown instruction
Will replace it when we implemented `brew repair-permission`
2015-09-30 13:55:32 +08:00
Xu Cheng
e66cb91702 update: add permissions check
Closes Homebrew/homebrew#42048

Closes Homebrew/homebrew#44434.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 13:54:04 +08:00
Xu Cheng
ff132a9ddb doctor: add check_access_homebrew_repository 2015-09-30 13:54:04 +08:00
Xu Cheng
3c54d12cec doctor: official supporting El Capitan 2015-09-30 13:54:04 +08:00
Xu Cheng
b37a285141 test-bot: fix start_revision for Travis
When a PR is merged during the test, the commit tree will be looked like
this:

master  PR
  \     /
    \ /
     |
    root

The start_revision will be poined to the commit used to merging PR,
instead of common root commit. As result, `git diff-tree start end`
will list file changes both in PR and master branch, which later
contributes to additional formulae are tested in some Travis builds.

To fix the problem, we use `git merge-base` to get common ancestor as
the real start_revision.

Closes Homebrew/homebrew#44379.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:46:59 +08:00
Mike McQuaid
74a2c3a509 test-bot: add comments, tweak argument handling. 2015-09-25 09:15:10 +01:00
Xu Cheng
afff98d700 travis: run --ci-master for non-PR
Closes Homebrew/homebrew#44302.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-24 20:35:26 +08:00
Mike McQuaid
711e079901 Export more Travis debugging and fix Git issue. 2015-09-24 08:33:08 +01:00
Dominyk Tiller
87769ee970 style: update rubocop to 0.34.2 2015-09-24 02:18:50 +01:00
Mike McQuaid
f154f4898a bottle: output maximum number of strings matches.
`brew bottle --verbose` outputs all the matches for a string found
in the files inside the Cellar. Instead of outputting all of these just
output the first 100.

Closes Homebrew/homebrew#44266.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-23 15:17:35 +01:00
Xu Cheng
322a93bce0 test-bot: use IO#read instead of IO#gets
IO#gets will only return for every new lines, which will be bad for
`brew install` since we print dots in single line.

Closes Homebrew/homebrew#44264.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-23 21:46:45 +08:00
Xu Cheng
8c9f0120ca Formula#system: print dot for travis 2015-09-23 21:46:44 +08:00
Mike McQuaid
43f3ba9caa test-bot: configure log lines instead of verbose.
The `--verbose` seems to cause some issues with compiling software like
`boost` under Xcode 7.
2015-09-23 21:46:43 +08:00
Martin Afanasjew
366440b5bb commands: sort external commands by name
Closes Homebrew/homebrew#44125.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-21 15:14:42 +01:00
Mike McQuaid
036aab567d test-bot: allow bottle --merge to fail.
It may still write some bottles so let's allow them to be uploaded.
2015-09-21 14:02:28 +01:00
Xu Cheng
76488216b7 test-bot: remove obsolete empty line 2015-09-21 17:28:58 +08:00
Misty De Meo
520b8496d4 Fix brew update for taps with non-master branches
Fixes Homebrew/homebrew#43865.
2015-09-19 00:52:23 -07:00
Mike McQuaid
e34033310a test-bot: optionally disable verbose install. 2015-09-19 08:19:49 +01:00
Dominyk Tiller
359cdafb86 doctor: don't false-flag sdk with clt 2015-09-18 15:55:21 +01:00
Xu Cheng
ccbb2ce786 test-bot: Formula#tap is not tap object 2015-09-18 22:19:53 +08:00
Dominyk Tiller
722a43aabe doctor: add xcode 7 SDK check 2015-09-18 15:11:48 +01:00
Xu Cheng
badea99097 test-bot: fix bottle uploading 2015-09-18 22:09:04 +08:00
Xu Cheng
9e2c0601e3 test-bot: fix bottle uploading 2015-09-18 22:08:07 +08:00
Xu Cheng
347a215361 test-bot: better fold id for travis
* Only use first two word in command to keep id short
* Append unique number in the id.

Closes Homebrew/homebrew#44104.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-18 22:04:24 +08:00
Xu Cheng
4114a75039 test-bot: add sanitize_ARGV_and_ENV
Closes Homebrew/homebrew#44102.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-18 21:54:02 +08:00
Xu Cheng
8228993624 test-bot: make ci-upload a standalone method 2015-09-18 21:54:02 +08:00
Xu Cheng
70d31838c6 test-bot: use tap object 2015-09-18 21:54:01 +08:00
Xu Cheng
658bdc2565 test-bot: make ci-reset-and-update a standalone method 2015-09-18 21:54:01 +08:00