Bo Anderson
20d86c0185
Refactor some tag handling into a Utils::Bottles::Tag class
2021-04-08 17:23:57 +01:00
Issy Long
e143dfdad6
Merge pull request #10658 from issyl0/rubocop-enable-rspec-context-wording
...
rubocop: Enable RSpec/ContextWording cop & fix offenses
2021-02-23 00:14:02 +00:00
Issy Long
ead84825a6
test: Fix all RSpec/RepeatedExampleGroupDescription offenses
2021-02-21 14:06:24 +00:00
Issy Long
5793be5b86
test: Change more context
s to describe
s for better sentences
...
- We could have added "to" to the `RSpec/ContextWording` list of valid
`context` prefixes, but switching these to `describe` is less special.
2021-02-21 13:31:26 +00:00
Issy Long
e1ad07190e
rubocop: Fix RSpec/ContextWording
offenses
...
- For some of these I changed `context` to `describe` as it fit better
rather than contriving a "when", "with" or "without", or massively
restructuring the tests.
2021-02-19 23:30:41 +00:00
Bo Anderson
323ff660fa
rubocop: use consistent array/hash indentation
2021-02-11 13:27:42 +00:00
Bo Anderson
87b6fe8f84
test/os/mac/sdk: add tests
2021-02-11 01:20:02 +00:00
Bo Anderson
fe52b3a402
os/mac/diagnostic: check SDK version matches the path
2021-02-11 01:19:59 +00:00
Rylan Polster
d5d7b6c3db
style: remove RSpec/MultipleDescribes violations
...
Co-authored-by: Nanda H Krishna <nanda.harishankar@gmail.com>
2021-02-01 20:30:51 -05:00
Rylan Polster
af40e072b0
style: remove RSpec/NamedSubject violations
2021-02-01 20:30:51 -05:00
Mike McQuaid
3dcb35d96f
os/mac/pkgconfig_spec: fix brew style.
2020-12-31 13:30:24 +00:00
Mike McQuaid
e74be0f53a
Merge pull request #10129 from carlocab/big-sur-pkg-config
...
os/mac/pkgconfig: merge pc files for 11.1 and 11.0
2020-12-28 13:19:31 +00:00
Seeker
1d710047a5
formula: add more tests for shared_library
2020-12-24 09:05:46 -08:00
carlocab
a701ef79d1
test/os/mac/pkgconfig_spec: fix test failures
...
This fixes the test failures induced by 845299d10e95e48e4b408ce5fef93036a9b4bf0a.
2020-12-24 14:45:25 +00:00
Mike McQuaid
6467fbadee
MacOS::Version: add (and use) architecture.
2020-12-09 11:55:27 +00:00
Mike McQuaid
9bd312bab2
Merge pull request #9267 from reitermarkus/macos-version-11.1
...
Handle macOS versions >= 11.1 correctly.
2020-11-25 14:36:01 +00:00
Mike McQuaid
d496f5c121
Deprecations for Homebrew 2.6.0
...
Do the usual deprecate/disable dance for the Homebrew 2.6.0 release.
Not to be merged until the next release will definitely be 2.6.0.
2020-11-24 16:44:02 +00:00
Markus Reiter
8598b1186a
Handle macOS versions >= 11.1 correctly.
2020-11-23 13:46:15 +01:00
EricFromCanada
ec17dfbfcd
requirements: drop unused "cli/args" requirement
2020-11-07 11:01:21 -05:00
Mike McQuaid
6b27dcb11c
workflows/tests: use Big Sur.
...
Migrate GitHub Actions to Big Sur.
2020-11-06 15:11:33 +00:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Markus Reiter
90d70ad932
Refactor OS::Mac::Version
.
2020-10-05 15:58:17 +02:00
Mike McQuaid
2e5272d04c
Deprecate/disable code for Homebrew 2.5.0.
...
Do the usual "disable deprecations" and "uncomment pending deprecations"
dance and delete/deprecate/disable relevant/related code.
2020-09-03 10:34:22 +01:00
Mike McQuaid
5d05a059e3
Merge pull request #8400 from Bo98/pc-version-tests
...
test/os/mac: add tests to validate pkg-config library versions
2020-08-21 17:12:06 +01:00
Bo Anderson
86eca5ab44
test/os/mac: add tests to validate library versions
2020-08-20 15:57:39 +01:00
Dawid Dziurla
dbbc14040d
extend/os/mac: install svn on catalina and newer
2020-08-18 12:50:34 +02:00
Markus Reiter
05365b5542
Pass args
more explicitly in FormulaInstaller
.
2020-07-30 03:21:12 +02:00
Markus Reiter
25b3632c4c
Pass args
to ENV
instead of using global args
.
2020-07-25 03:57:43 +02:00
Claudia
374c734d9b
Make Hardware.oldest_cpu
depend on architecture
...
Starting with Xcode 12 Beta 2, builds that used to work on Apple Silicon
now break due to `Hardware#oldest_cpu` returning `:nehalem` [1].
This commit is the first in a series of improvements to
`Hardware#oldest_cpu`. It resolves the Xcode 12 Beta 2 issue for now.
[1]: https://github.com/Homebrew/brew/issues/7857#issuecomment-655536261
2020-07-08 20:59:10 +02:00
Michka Popoff
955bca6574
formule: add generic shared-lib methods
...
We have strings containing hardcoded ".dylib" extensions in homebrew-core.
To be able to bring linuxbrew-core and homebrew-core closer together,
I am introducing a new generic attribute that can be used in formulae.
2020-06-20 23:14:18 +02:00
Michka Popoff
3ad9009937
on_os block: test support for patches
2020-06-10 19:29:52 +02:00
Michka Popoff
2a50ef045f
on_os blocks: remove url tests
...
This is not allowed by the style audit, and we do not want
to allow different source url's depending on the os.
2020-06-10 19:29:52 +02:00
Michka Popoff
1f8ebf5d20
resource: allow on_os blocks
2020-06-10 19:29:04 +02:00
Mike McQuaid
b58fa4ebb1
Drop Mavericks support.
...
Companion to https://github.com/Homebrew/brew/pull/7698 .
Provide better, `odeprecated` messaging for
`depends_on :macos => :mavericks` and otherwise just fix up the code
that relied on `:mavericks`.
2020-06-10 10:06:46 +01:00
Bo Anderson
16141e7eff
os/mac/software_spec: fix argument error in valid use case
2020-05-04 17:16:39 +01:00
Bo Anderson
eb303dd654
software_spec: add uses_from_macos since bound
2020-04-28 16:45:32 +01:00
Michka Popoff
c7927f5af5
formula: add linux and macos only function blocks
2020-04-12 23:51:41 +02:00
Xiao Di Guan
a9b22165fd
doctor: remove DYLD checks
2020-01-26 14:38:32 +11:00
Mike McQuaid
0c1b556196
uses_from_macos: remove before/after.
...
We're not actually using this anywhere and it makes the code
more complicated.
Relatedly, this PR fixes the issue where
`uses_from_macos "python@2" => :build` was valid on macOS but not
on Linux.
2019-12-19 14:36:33 +00:00
Mike McQuaid
22795d7e30
spec_helper: do cache clearing in single location.
2019-11-06 10:20:57 +00:00
EricFromCanada
f6ef26a127
Fix OS version logic for uses_from_macos
2019-09-23 13:00:58 -04:00
Gabriel
9fa8dc5d89
Remove old os/mac/formula spec
2019-06-03 15:52:53 -03:00
Gabriel
332acbbfc3
Add more spec cases
2019-06-03 15:52:53 -03:00
Gabriel
7a9bfb4c9f
Fix spec
2019-06-03 15:52:53 -03:00
Gabriel
aafe87524d
Extends SoftwareSpec with #uses_from_macos
2019-06-03 15:52:53 -03:00
Gabriel
01c5bc48d2
Create extended os formula specs
2019-06-03 15:52:53 -03:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
75257886f2
Cleanup some RSpec tests
...
Fix some Rubocop RSpec checks, update some values and improve
documentation.
2019-03-28 19:16:56 +00:00
Mike McQuaid
28fa8a7c97
version: add CPU tests.
...
Add a new API inspired by discussion in
https://github.com/Homebrew/homebrew-core/pull/36435 to query if a given
CPU option is supported by a version of macOS.
2019-01-28 19:31:21 +00:00
Mike McQuaid
1aa8ad09e2
Deprecate macOS versions below Mavericks
...
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00