aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-07-24brew.rb: Use odie instead of onoe+exitBaptiste Fontaine
Closes #577. Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-07-24audit: only check undeclared deps for standard installations. (#576)Xu Cheng
In fact, we don't really care about undeclared dependencies for optional installations. Because, this is mainly used to help us to detect breakage for bottles so we can do a revision bump.
2016-07-21add BuildOptions#build_bottle?Xu Cheng
This makes BuildOptions more compatible with Tab object. Otherwise, `brew reinstall foo` will just crash if foo is not installed.
2016-07-21FormulaInstaller#sanitized_ARGV_options: fix regexXu Cheng
This fixes a regression caused by 2e961dc9dee63f641f7f162fd7a2845c5fd092fe, where a misplaced `+` cause the regex only catch one character. Fixes https://github.com/Homebrew/homebrew-science/issues/3847.
2016-07-20pkg-config: update for macOS 10.12 beta 3Dominyk Tiller
2016-07-20xcode: update expected clang for macOS 10.12Dominyk Tiller
2016-07-19tests: add cmd/irb integration test (#501)Andrea Kao
2016-07-19tests: nest HOMEBREW_TEMP inside TEST_TMPDIR (#554)Andrea Kao
2016-07-19test-bot: fix coverage on Travis CIMartin Afanasjew
Make sure to call `brew tests` only once with `--coverage` to avoid expensive multiple runs and to prevent later runs from overwriting previously sent results to Coveralls. (The previous setup overwrote the results from a regular run with results from the `--generic` run.) The `--no-compat` variant without any other options specified seemed to be the most appropriate for a coverage report. Closes #546. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-19tests: use SimpleCov 0.12.0 and Coveralls 0.8.14Martin Afanasjew
SimpleCov 0.12.0 brings some moderate speed improvements and soon (sadly not yet) can be switched back to a stable release. Update to matching Coveralls release, fortunately with fewer dependencies than before.
2016-07-19tests: strip Homebrew prefix from coverage reportMartin Afanasjew
Make `Library/Homebrew` the new root now that *all* implementation files are in this directory. Update filters/groups accordingly. Note that paths in filters/groups are not anchored at the root and are always matched against the full path. Our rules are effectively anchored because they always include the `/Homebrew/` path component.
2016-07-18inreplace: support for audit arg in non-block formilovezfs
Provides feature parity between the block and non-block forms of inreplace by creating a four-argument version of the non-block form, where the fourth argument is an optional Boolean value, defaulting to true, which specifies whether a failed inreplace should cause an InreplaceError error to be raised. The fourth argument is passed along to StringInreplaceExtension#gsub!, which already supports an optional audit_result argument. This resolves the Catch-22 that single replacements aren't permissible in the block form (in that they now cause `brew audit` to complain), but the audit_result argument is not available in the non-block form. Closes #552. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-18reinstall: handle new optionsXu Cheng
Since we are loading options as Formula#build from tab, we will have to explicitly read options from ARGV as well. Fixes #3066. Closes #537. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-18remove unnecessary `Tab.for_formula`Xu Cheng
We already loaded tab in ARGV.resolved_formulae or Formulary.from_rack
2016-07-18remove unnecessary build options manipulation for test and postinstallXu Cheng
We already loaded build options in ARGV.resolved_formulae for test and postinstall
2016-07-18LinkageChecker: simplify logic (#538)Xu Cheng
BuiltOptions#without? already handles the option_names for dependencies. Also check disabled recommended deps.
2016-07-17mac/diagnostic: add check_for_prerelease_xcodeDominyk Tiller
Closes #524. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-07-17xcode: track prerelease releasesDominyk Tiller
2016-07-18create: path.version may be nilXu Cheng
Fixes https://github.com/Homebrew/homebrew-core/issues/3067.
2016-07-17Update commit when resolving the formula (#536)Uladzislau Shablinski
2016-07-17extend/ARGV: avoid assignment in argument listMartin Afanasjew
Aside from being bad style, this also assigns to an unused variable.
2016-07-16audit: prevent crash from nil exitstatus (#532)Margaret Lewicka
If rubocop invocation from brew audit exits with nil exitstatus, brew audit fails with 'undefined method `>' for nil:NilClass'.
2016-07-17software_spec: use version dups for resources (#534)Uladzislau Shablinski
Also prevent the commit of formula's HeadVersion from passing to the resource. This is a fix of #531
2016-07-16os/mac/xcode: fix CVS/GCC check if no XcodeMartin Afanasjew
On systems prior to 10.9, formulae that use CVS as a download source check whether the installed Xcode already provides CVS to avoid adding a dependency on the `cvs` formula. Unfortunately, if no Xcode is installed the check fails with undefined method `<' for nil:NilClass causing the formula to become unloadable. This in turn causes some taps to be untappable since #396 added the `readall` check on `tap`. Closes #508.
2016-07-17Tab#for_formula: using Formula#installed_prefixXu Cheng
Closes #529. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-17ARGV#kegs: using installed_prefix to locate kegXu Cheng
2016-07-17ARGV#resolved_formulae: check whether input is a formula fileXu Cheng
2016-07-17Keg#link: run optlink firstXu Cheng
This prevents a link conflict during `brew upgrade` causing opt link stuck to old version. At this point, users will have to run `brew switch` to fix it. Closes #533. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-17brew.sh: make sudo-checker cross-platformXu Cheng
2016-07-16ENV: fix homebrew_extra_pkg_config_pathsilovezfs
Switch to HOMEBREW_LIBRARY since HOMEBREW_LIBRARY_PATH already includes "/Homebrew" and HOMEBREW_LIBRARY is less confusing. Closes #530. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-16Update and test eligible_kegs_for_cleanupVlad Shablinsky
Closes #478. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-16Unify Version.create usageVlad Shablinsky
Substitue each Version.new and HeadVersion.new with Version.create to unify Version and HeadVersion instantiation among core code. Note that this does not relate to Mac::OS::Version class.
2016-07-16test_formula: test new HEAD methodsVlad Shablinsky
* Test `Formula#update_head_version` * Test `Formula#latest_head_prefix`
2016-07-16Apply tests to new HEAD formatVlad Shablinsky
2016-07-16Add HeadVersion testsVlad Shablinsky
2016-07-16Use HeadVersion for install/reinstallVlad Shablinsky
2016-07-16resource: detect HEAD versionsVlad Shablinsky
2016-07-16pkg_version: allow HeadVersion and HEAD revisionsVlad Shablinsky
2016-07-16version: introduce HeadVersionVlad Shablinsky
2016-07-16test-bot: re-add update-test. (#521)Mike McQuaid
2016-07-16update: Don't report formulae that are moved within a tap but not renamed (#480)Josh Hagins
2016-07-15Deprecate homebrew/binary. (#512)Mike McQuaid
We're moving more stuff to Homebrew Cask which is better maintained and run.
2016-07-15osxfuse_requirement: update PKG_CONFIG_PATHDominyk Tiller
2016-07-15update.sh: fix Git path.Mike McQuaid
Closes https://github.com/Homebrew/brew/issues/519 Closes https://github.com/Homebrew/homebrew-core/issues/3029
2016-07-15brew.{rb,sh}: move to Library/Homebrew. (#506)Mike McQuaid
2016-07-15ENV: move to new paths. (#507)Mike McQuaid
Move some stuff formerly in `Library/ENV` around: - Move `Library/ENV/$XCODE_VERSION` to `Library/Homebrew/env/super` as they are all superenv wrappers and all symlinks to the same version. We never needed the "separate shims for separate versions" functionality and it just adds confusion. - Move `Library/ENV/pkgconfig` to `Library/Homebrew/env/pkgconfig` to get more things under `Library/Homebrew` - Move `Library/ENV/scm` to `Library/scm` as these wrappers are not actually used by or related to superenv (or stdenv) in any way.
2016-07-15respect user's curlrc file (#516)Xu Cheng
Users may have ~/.curlrc file to include options like proxies. However, since we overwrite HOME environment variable during the build and test, curl won't be able to find it. This commit solves this issue by using CURL_HOME environment variable, which will be pointed to the original HOME path. From `curl(1)`: > 1) curl tries to find the "home dir": It first checks for the CURL_HOME and then the HOME environment variables. Failing that, it uses getpwuid() on Unix-like systems (which returns the home dir given the current user in your system). On Windows, it then checks for the APPDATA variable, or as a last resort the '%USER- PROFILE%\Application Data'.
2016-07-15test-bot: remove Jenkins Git debugging.Mike McQuaid
2016-07-15test-bot: more reset/cleanup tweaks.Mike McQuaid
2016-07-15test-bot: print out git commands on Jenkins.Mike McQuaid