10755 Commits

Author SHA1 Message Date
Dominyk Tiller
774eefa8ae
test_utils: add with_custom_locale test 2016-08-02 03:50:49 +01:00
Dominyk Tiller
de4016e049
utils: add with_custom_locale helper 2016-08-02 03:50:49 +01:00
Dominyk Tiller
f10370bde5
xcode: update expected clang for macOS 10.12 2016-08-01 23:46:54 +01:00
Tim D. Smith
a5a930c48b Allow virtualenvs to find Python bindings provided by deps (#608)
Allow virtualenvs to find Python bindings provided by deps

Closes #603.
2016-07-31 11:59:30 -07:00
Mike McQuaid
7a00f03c92 utils: tell people to report deprecations to tap.
This should hopefully avoid Homebrew/brew or Homebrew/homebrew-core
having these exceptions reported to us.
2016-07-31 19:22:12 +01:00
Mike McQuaid
3e5ccaf3d2 link: don't allow more openssl/libressl linkage.
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-31 19:12:20 +01:00
Dominyk Tiller
12e7a08b7a
test_cleaner: add perl removal tests
Closes #609.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-07-31 03:44:29 +01:00
Dominyk Tiller
202f793d8a
cleaner: kill unnecessary perl elements
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-31 03:44:29 +01:00
Martin Afanasjew
1244aa6ece utils: fix option handling in 'odisabled'
Options passed to `odisabled` were completely ignored. Instead, merge
them with the defaults that distinguish `odisabled` from `odeprecated`.
2016-07-30 14:59:16 +02:00
Martin Afanasjew
0a33cc591d utils: provide a better location in 'odeprecated'
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-30 14:51:14 +02:00
ilovezfs
19a77c816e formula_versions: ignore FormulaMethodDeprecatedError
old formula revisions have deprecated elements such as sha1 checksums

Closes #605.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-29 23:12:13 -07:00
Mike McQuaid
bc5b9c1e97 test-bot: fix non-OS X report generation. 2016-07-29 21:58:17 -06:00
Mike McQuaid
81b034a577 test_cmd_audit: don't print compat warnings. 2016-07-29 21:21:29 -06:00
Mike McQuaid
aadd465712 compat/xcode: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
ade09145d9 compat/version: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
f334806eb1 compat/tap: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
aacdaa554c compat/sha1: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
3d36208328 compat/pathname: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
dd3a8d4b2f compat/md5: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
a2347dc997 compat/macos: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
3a0f23239c compat/language/haskell: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
6bd8e1d64e compat/keg: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
b950966bdd compat/hardware: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
e107c86aec compat/formula_specialities: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
b3e423fc7c compat/formula: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
bf13eb9b59 compat/fails_with_llvm: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
369fc93479 compat/dependency_collector: cleanup style. 2016-07-29 21:21:29 -06:00
Mike McQuaid
10ddb2ed97 utils: add API removal messaging methods.
Add new `odeprecated` and `odisabled` methods to print API removal
messages. Currently these are just used by things in `compat/`.
2016-07-29 21:21:29 -06:00
Mike McQuaid
af2101b64d exceptions: add FormulaMethodDeprecatedError.
This will be raised when Homebrew developers try to use formulae that
call deprecated methods.
2016-07-29 21:21:29 -06:00
Mike McQuaid
80b68add13 compat: add Rubocop file. 2016-07-29 21:21:29 -06:00
Mike McQuaid
164e46a729 Add missing development_tools requires. 2016-07-29 21:21:02 -06:00
Mike McQuaid
bcee1e0841 travis.yml: run test-bot on Linux.
This should verify that we're not breaking our tests on Linux.
2016-07-29 21:21:02 -06:00
Mike McQuaid
569c80323b hardware: add ARM detection from Linuxbrew. 2016-07-29 21:21:02 -06:00
Mike McQuaid
5566757f60 linux/hardware/cpu: import family from Linuxbrew. 2016-07-29 21:21:02 -06:00
Mike McQuaid
696f497e32 test-bot: skip update-test on non-Mac. 2016-07-29 21:21:02 -06:00
Mike McQuaid
c3739dc441 utils/bottles: don't rely on tar wildcards, location.
This doesn’t work quite as-is on Linux’s GNU tar.
2016-07-29 21:21:02 -06:00
Mike McQuaid
fa6377dc12 test_language_module_requirement: check for python. 2016-07-29 21:21:02 -06:00
Mike McQuaid
70a1ef5bdf testing_env: add needs_python method. 2016-07-29 21:21:02 -06:00
Mike McQuaid
b43e49a9b8 test_formula: fix sort order bugs. 2016-07-29 21:21:02 -06:00
Mike McQuaid
c90552f66b tab: use the correct default compiler. 2016-07-29 21:21:02 -06:00
Mike McQuaid
a1a8b3faa7 keg_relocate: don't relocate text files without /usr/bin/file. 2016-07-29 21:21:02 -06:00
Mike McQuaid
ebddd65e8c development_tools: simplify generic default_compiler logic. 2016-07-29 21:21:02 -06:00
Mike McQuaid
0fd0ecd599 os: don't assume Linux if testing generic OS. 2016-07-29 21:21:02 -06:00
Mike McQuaid
1aded31fec test_utils: remove unnecessary full paths. 2016-07-29 21:21:02 -06:00
Mike McQuaid
b999edb344 link: don't link /usr/local openssl.
See https://langui.sh/2015/07/24/osx-clang-include-lib-search-paths/ for
an explanation and https://gist.github.com/tdsmith/4b502c5cc6e7d358acdf
for reproduction instructions.
2016-07-29 17:00:51 -06:00
Tim D. Smith
209d9e8a6e Refurbish args in virtualenv (#600)
Instead of adding additional lines to formula.rb:
  https://git.io/vKxxh
just turn on argument refurbishment for any formula that creates a
virtualenv.

cf Homebrew/ruby-macho#50, Homebrew/homebrew-core#1663
2016-07-29 08:45:26 -07:00
Mike McQuaid
3469f177f0 audit: don't check formula linkage.
This partly reverts commit 0ed673abdb59e2f75f9b8539cce318607924e87f.
2016-07-28 16:53:41 -06:00
Martin Afanasjew
12413cb760 tests: fix duplicate test case class name
Rename test case class to avoid two definitions of `BlacklistTests`.
2016-07-28 22:09:07 +02:00
Mike McQuaid
97b6a3069e test: add default Linux x86_64 bottle. 2016-07-27 21:44:35 -06:00
Tim D. Smith
c4deed68bd Make method names inquisitive
Closes #592.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2016-07-27 17:49:49 -07:00