8906 Commits

Author SHA1 Message Date
Martin Afanasjew
77dd9d56ff Use GitRepositoryExtension for HOMEBREW_REPOSITORY 2016-07-07 01:46:58 +02:00
Martin Afanasjew
6cdc6b1460 Add GitRepositoryExtension
Add an extension for accessing Git-related meta data that can be mixed
in into a Pathname object (e.g. `HOMBREW_REPOSITORY` or the path of a
`Tap` instance). The goal here is to eliminate code duplication.
2016-07-07 01:46:58 +02:00
Martin Afanasjew
ec75ca7e42 extend/os/mac/diagnostic: remove redundant method
Remove an exact duplicate from further up in the same file. (It was
accidentally added in 8a582f2bd976ce7044c3b2dc6eef701f94b9ace5.)
2016-07-06 16:26:27 +02:00
Martin Afanasjew
2842910609 extend/os/mac/diagnostic: fix indentation 2016-07-06 16:22:15 +02:00
Mike McQuaid
3a127e405e development_tools: add installed? method. (#455) 2016-07-06 11:07:24 +01:00
Mike McQuaid
11624b9a7d hardware: move generic logic from linux. (#454) 2016-07-06 10:43:54 +01:00
Mike McQuaid
416e51bca9 ENV: only check Superenv if necessary. (#451) 2016-07-06 10:43:42 +01:00
Vlad Shablinsky
45b3bfd11a
download_strategy: use short hash for git last_commit
Closes #460.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-06 16:19:49 +08:00
Vlad Shablinsky
0b2cc5c20d
test_download_strategies: add git tests 2016-07-06 16:19:49 +08:00
Vlad Shablinsky
2f5f352baa
VCSDownloadStrategy: add last_commit method
Implement:
  * VCSDownloadStrategy#last_commit
    Use last modified file timestamp
  * SubversionDownloadStrategy#last_commit
    Use `svn info --show-item revision`
  * GitDownloadStrategy#last_commit
    Use `git rev-parse HEAD`
  * MercurialDownloadStrategy#last_commit
    Use `hg parent --template {node}`
  * BazaarDownloadStrategy#last_commit
    Use `bazaar revno`
  * FossilDownloadStrategy#last_commit
  Use `fossil info tip`
2016-07-06 16:19:49 +08:00
Xu Cheng
cc01d3f59a
doctor: fix undefined method `include?' for nil:NilClass
Closes https://github.com/Homebrew/homebrew-core/issues/2758
2016-07-06 16:18:24 +08:00
Misty De Meo
ca005cb824 doctor: check for beta XQuartz releases
Beta versions of XQuartz have address sanitization enabled, which
breaks some software at runtime, including wine.

Closes Homebrew/homebrew-core#2481.

Closes #459.

Signed-off-by: Misty De Meo <mistydemeo@github.com>
2016-07-06 17:21:05 +10:00
Dominyk Tiller
cdcbe61acb
pkg-config: update for macOS 10.12 beta 2 2016-07-06 01:28:04 +01:00
Dominyk Tiller
1c802dd3c5
xcode: update expected clang for macOS 10.12 2016-07-06 01:14:22 +01:00
Martin Afanasjew
9e021aa661 test/lib/config: group paths by persistence
Rearrange path constants such that persistent paths (that point into the
Homebrew code base) are in one spot and all other paths (that are being
redirected to a temporary location for the duration of the test run) are
grouped together.

Closes #440.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-05 20:09:07 +02:00
Martin Afanasjew
22a47af1a2 config: document previously undocumented constants 2016-07-05 20:09:07 +02:00
Martin Afanasjew
e25b49dcb1 config: remove obsolete HOMEBREW_CONTRIB constant 2016-07-05 20:09:07 +02:00
Andrew Janke
61ffa47fd9 test-bot: fix ruby_has_encoding call regression 2016-07-05 10:50:35 -04:00
Andrew Janke
f518f57bd8 gist-logs: truncate log files to be gist-friendly (#279)
Truncates each log file to about 1 MB. This avoids upload and
download errors with the gists, and respects GitHub's suggested
size limits.
2016-07-05 08:45:17 -04:00
Martin Afanasjew
1b1bf56733 tests: fix leak in '[un]linkapps' integration test (#439)
Prior to the fix, every run of the test suite would leave behind a pair
of empty directories in `$TMPDIR`. (A temporary home directory was
created but only its child `Applications` was wiped when done.)
2016-07-05 14:36:02 +02:00
Mike McQuaid
59074e91d6 diagnostic: more porting to generic OS. (#449) 2016-07-04 18:35:03 +01:00
Mike McQuaid
a1b0ef1300 Remove unnecessary official command tapping. 2016-07-04 18:26:47 +01:00
Mike McQuaid
8bb315620e test-bot: don't test official commands on ruby 1.8. 2016-07-04 17:24:02 +01:00
Mike McQuaid
26dcc9786d test_integration_cmds: loosen cask test. 2016-07-04 17:17:20 +01:00
Mike McQuaid
245441e1e8 test-bot: fix args, tap before official-cmd-taps. 2016-07-04 17:08:17 +01:00
Mike McQuaid
bf42959609 Revert "Revert "Test officially supported cmd taps. (#390)""
This reverts commit dba1958bd79c1c9d18f215dfc2b806ea62edd1c8.
2016-07-04 17:05:37 +01:00
Martin Afanasjew
dba1958bd7 Revert "Test officially supported cmd taps. (#390)"
This reverts commit 252c701c59227c385ef6178fe99523cca8c843bb.

Taps installed prior to running the test suite are not visible to the
test suite as most Homebrew paths are redefined as to not mess up the
local installation.
2016-07-04 17:41:14 +02:00
Mike McQuaid
fe29cc2920 cleaner: port to generic OS. (#447) 2016-07-04 16:10:24 +01:00
Mike McQuaid
883b201c09 utils: output what files edit is opening. (#444)
Since we've moved all formulae to taps it's not necessarily obvious
what the path for the files are otherwise.
2016-07-04 16:09:24 +01:00
Mike McQuaid
252c701c59 Test officially supported cmd taps. (#390)
All of these taps use Homebrew internal APIs (or will shortly) and we
autoinstall them all from `brew $CMD`. We should adjust our CI to ensure
that we never accidentally break these taps when making changes to core
code so that these taps can rely more on this core code rather than
having to e.g. vendor equivalent code that never changes on our end.
2016-07-04 16:08:53 +01:00
Mike McQuaid
468ebc5ed5 install: undocument --force-bottle. (#443)
This is a developer-only option I created for testing purposes. It
should not be used by end-users.
2016-07-04 14:03:03 +01:00
Mike McQuaid
3e982b9720 tests: default to testing offline. (#430)
Set HOMEBREW_NO_GITHUB_API to allow running all tests (but search's
integration test specifically for now) offline. This can be overridden
with `--online`.
2016-07-04 13:32:58 +01:00
Martin Afanasjew
310d7067e0 linkage: update --test documentation
Adjust the wording to be in sync with the changes made in #424.
2016-07-04 08:16:23 +02:00
Camden Narzt
29713e61eb download_strategy: fix detect_from_symbol method (#446)
strategy is an undefined variable
2016-07-04 01:58:44 -04:00
Martin Afanasjew
a49f3a8e91 style: use RuboCop 0.41.1 (#433)
Tweak `Style/NumericLiteralPrefix` cop settings as we're using octal
literals a lot (both in formulae and the package manager) for file
permissions and aren't ready just yet to transition them to the more
beginner-friendly `0o` prefix (instead of the more obscure `0` prefix).
2016-07-04 07:19:44 +02:00
Andrew Janke
f4b3dadb64 gist-logs: close temp file before passing to curl (#418)
Ensures that the data gets written to disk so curl can see it, avoiding
intermittent JSON parsing errors in gist creation.
2016-07-03 17:21:13 -04:00
Mike McQuaid
0478c2fc0f update-report: prune on cask migration. (#428)
Do this to ensure that any symlinks in the Homebrew prefix and/or in
Applications are removed to stop issues with stale symlinks causing
Casks from being installed correctly.
2016-07-03 14:34:38 -05:00
Xu Cheng
a97661a548
linkage: document --reverse 2016-07-03 16:50:55 +08:00
Xu Cheng
9167fbf876
linkage: fix edge cases for undeclared_deps
* take requirements into account.
* handle full qualified formula name.
* filter out build time or unused optional deps/requirements.

Closes #424.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-03 16:45:30 +08:00
Xu Cheng
080ddd8804
linkage: check undeclared dependencies for --test
Also allowing access results for LinkageChecker
2016-07-03 16:45:29 +08:00
Tim D. Smith
abca5936f2 Add --reverse to brew linkage
For each dylib the keg references, print the dylib followed by the
binaries which link to it.

Closes #431.
2016-07-02 23:58:07 -07:00
Vlad Shablinsky
fbac41d95b test_formula: improve test_migration_needed
Closes #432.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-02 00:29:45 +02:00
Vlad Shablinsky
4aedeea96d formula: simplify migration_needed? 2016-07-02 00:29:45 +02:00
Dominyk Tiller
e3b6c96b5d
requirement: update cask wording
We now have "magic" to automatically handle `brew cask` and `brew bundle`
calls without needing to tap those taps manually beforehand. Let's reflect that
in this wording for consistency.

Closes #427.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-07-01 04:31:02 +01:00
Tony Ta
3e309d4643 blacklist: update URLs and MacRuby message (#406)
* updates link for installing pip
* the macruby project has been abandoned and the website is gone
2016-06-30 21:47:15 +02:00
Dominyk Tiller
0926f920dc
osxfuse_requirement: fix website link 2016-06-30 17:33:59 +01:00
Xu Cheng
91a225eef1
test-bot: add --skip-relocation flag
Closes #410.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-06-30 15:26:04 +08:00
Xu Cheng
d4e8d3df0a
bottle: add --skip-relocation flag to skip keg relocate
This flag is indented to be used in `homebrew/portable` to build vendor
ruby/git/curl.
2016-06-30 15:26:04 +08:00
Tim D. Smith
a2681d196f Tests for Step class
Closes #419.
2016-06-29 21:17:09 -07:00
Tim D. Smith
f04ffb614d Move with_environment to testing_env 2016-06-29 21:16:50 -07:00