aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-08-06download_strategy: use short hash for mercurialVlad Shablinsky
2016-08-06download_strategy: allow to suppress outputVlad Shablinsky
2016-08-06Introduce GitHubGitDownloadStrategyVlad Shablinsky
2016-08-06Add tests for Tab versionsVlad Shablinsky
2016-08-06tab: allow to store versionsVlad Shablinsky
2016-08-06Fix update commit for non-HEAD kegs with head spec (#644)Uladzislau Shablinski
If we try to call `Formulary.from_keg(f, :head)` on the keg that is not HEAD-keg itself, we don't need to update commit of returned formula and should use just HEAD version with nil commit. Same is true for `ARGV.resolved_formulae`
2016-08-06tests: fix code style issues (#587)Andrea Kao
2016-08-06tests: fix fluctuations in test coverage (#647)Martin Afanasjew
This basically started once our integration tests caused the overall test time to raise above 10 minutes, causing some coverage data to be dropped because SimpleCov believed it to be stale.
2016-08-06test-bot: avoid duplicate coverage reportsMartin Afanasjew
When running on Travis CI, both the Linux and macOS build will send a coverage report, causing them to be merged by Coveralls. This results in inferior coverage due to the early stage of the Linux-specific tests and is probably not what we want. Make sure we only send a report for macOS (assuming we stick with a single macOS build in `.travis.yml`).
2016-08-05update-report: tweak Cask migration output.Mike McQuaid
No longer output every cask under the list of changed formulae but instead create a dedicated, unprinted report section for casks and then iterate through that instead.
2016-08-05update-report: print developer exception backtraces.Mike McQuaid
2016-08-05Revert "Partially reverts 4338f35b848ad61462fc4f73e1365e6c002201a2"Mike McQuaid
This reverts commit b33b1af073979c8a699ed9688dba37fb7e74f0b5.
2016-08-05Partially reverts 4338f35b848ad61462fc4f73e1365e6c002201a2Xu Cheng
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-08-04tests: add cmd/migrate integration testAndrea Kao
2016-08-04tap: add cask methods.Anastasia Sulyagina
2016-08-02python: tweak script linking in virtualenv (#613)Martin Afanasjew
* python: tweak script linking in virtualenv Instead of making the formula author use a slightly awkward block like venv.link_scripts(bin) { venv.pip_install buildpath } avoid exposing this implementation detail and offer the more familiar: venv.pip_install buildpath, :link_scripts => bin * Add non-block form and use instead of recursion * Update 'pip_install' documentation * Remove obsolete 'link_scripts' * Add test for 'pip_install' with linking scripts Also drop no longer relevant (and broken) `link_scripts` test, that served as a template for the new test. * Restore compatibility with Ruby 1.8.7 * Replace option hash with 'pip_install_and_link' * Avoid confusing 'Object#tap' and fix silly bug * Avoid side effects in mock object parameter check * Simplify argument check (no need for a block)
2016-08-02Revert "tap: add cask methods."Mike McQuaid
This reverts commit 05daa0574732a7884bd158b2c3e14bd0709367da.
2016-08-02tap: add cask methods.AnastasiaSulyagina
Closes #562.
2016-08-02audit: add --new-formula option.Mike McQuaid
Rather than nudge people to run `--strict` and then ignore some of the results sometimes (e.g. GitHub repository notability) instead add a dedicated `--new-formula` option that implies this is a one-time advisory check.
2016-08-02update-report: use --overwrite to migrate Casks.Mike McQuaid
`--force` isn't quite what we want here as it'll just allow keg-only linkage whereas we want to ensure we overwrite anything the Cask installed.
2016-08-02update-report: allow Casks migration to formulae.AnastasiaSulyagina
Closes #588. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-08-02update-report: tweak cask migration text.Mike McQuaid
2016-08-02tests: update cmd/analytics integration testAndrea Kao
2016-08-02keg_relocate: refactor path.find change for performanceDominyk Tiller
Closes #616. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-08-02keg_relocate: work around `file` bugDominyk Tiller
There's an old bug in `file` which means it can't read certain files under a non-C locale. This has been fixed upstream for some time, but Apple hasn't picked that fix up & even on OS X El Capitan the `file` is ancient. This is currently causing a lot of false positives in our bottle code around relocating things like manpages translated into non-English languages, because currently the test does: ``` pn = "/usr/local/Cellar/vim/7.4.2109/share/man/fr/man1/vim.1" Utils.popen_read("/usr/bin/file", "--brief", pn).include?("text") ``` Which returns `false`. But it isn't returning `false` because the actual result is false, but because `file` panics & fails, which for us equals a `false`. The actual output when accessed is: ``` pn = "/usr/local/Cellar/vim/7.4.2109/share/man/fr/man1/vim.1" Utils.popen_read("/usr/bin/file", "--brief", pn) "ERROR: line 22: regexec error 17, (illegal byte sequence)\n" ``` Forcing this check to be done under a "C" locale eliminates this particular false positive for strings we can't relocate & consequently things such as NLS may prove to be more portable in some formulae than is currently the case. Using `vim` again for the example: ``` pn = "/usr/local/Cellar/vim/7.4.2109/share/man/fr/man1/vim.1" Utils.popen_read("/usr/bin/file", "--brief", pn).include?("text") true ``` This reduces the flagged strings from `vim` from 4 issues to 2, the remaining two with the `vim` executable itself which "remembers" the full path to perl, python, ruby, etc during build & vomits that information out when requested by the user. Both the manpages flagged before this change are no longer flagged as unrelocatable. This won't entirely resolve the NLS problem because some things hardcode in a locale path, which will be stored in the executable, but at the very least it should reduce the number of false positives & may enable relocation where that locale path hasn't been burnt in.
2016-08-02test_utils: add with_custom_locale testDominyk Tiller
2016-08-02utils: add with_custom_locale helperDominyk Tiller
2016-08-01xcode: update expected clang for macOS 10.12Dominyk Tiller
2016-07-31Allow virtualenvs to find Python bindings provided by deps (#608)Tim D. Smith
Allow virtualenvs to find Python bindings provided by deps Closes #603.
2016-07-31utils: tell people to report deprecations to tap.Mike McQuaid
This should hopefully avoid Homebrew/brew or Homebrew/homebrew-core having these exceptions reported to us.
2016-07-31link: don't allow more openssl/libressl linkage.Mike McQuaid
This extends the approach in #597 to further prevent linkage of formulae that conflict with the system OpenSSL and can cause the issues described in that issue.
2016-07-31test_cleaner: add perl removal testsDominyk Tiller
Closes #609. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-07-31cleaner: kill unnecessary perl elementsDominyk Tiller
We shouldn't be packaging either `perllocal.pod` or `.packlist` files. Both are only really useful outside of package management. They get automatically generated whenever you install a Perl module. Debian, Arch, MacPorts & others remove them and we should have been as well really; keeping them causes completely unnecessary conflicts between formulae.
2016-07-30utils: fix option handling in 'odisabled'Martin Afanasjew
Options passed to `odisabled` were completely ignored. Instead, merge them with the defaults that distinguish `odisabled` from `odeprecated`.
2016-07-30utils: provide a better location in 'odeprecated'Martin Afanasjew
Try to find a formula in the backtrace to make the warning message more helpful in identifying the culprit, as the formula is not always the immediate caller of a deprecated method. Provide some sane fallbacks if there's not formula in the call stack.
2016-07-29formula_versions: ignore FormulaMethodDeprecatedErrorilovezfs
old formula revisions have deprecated elements such as sha1 checksums Closes #605. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-29test-bot: fix non-OS X report generation.Mike McQuaid
2016-07-29test_cmd_audit: don't print compat warnings.Mike McQuaid
2016-07-29compat/xcode: cleanup style.Mike McQuaid
2016-07-29compat/version: cleanup style.Mike McQuaid
2016-07-29compat/tap: cleanup style.Mike McQuaid
2016-07-29compat/sha1: cleanup style.Mike McQuaid
2016-07-29compat/pathname: cleanup style.Mike McQuaid
2016-07-29compat/md5: cleanup style.Mike McQuaid
2016-07-29compat/macos: cleanup style.Mike McQuaid
2016-07-29compat/language/haskell: cleanup style.Mike McQuaid
2016-07-29compat/keg: cleanup style.Mike McQuaid
2016-07-29compat/hardware: cleanup style.Mike McQuaid
2016-07-29compat/formula_specialities: cleanup style.Mike McQuaid