Sam Ford
703d59b521
livecheck: check stable before head by default
2021-02-04 15:44:09 -05:00
Tom Hu
7d8437608e
Add JSONFormatter explicitly
2021-02-04 12:35:55 -05:00
Carlo Cabrera
2de172e050
rubocops/bottle: disable bottle order check
...
This is causing CI failures at homebrew/core [1], so let's disable this
for now.
[1] 01b6830646
2021-02-04 11:18:09 +00:00
Tom Hu
1fb58d5b2f
Add Codecov GitHub Action step
2021-02-03 22:46:05 -05:00
Rylan Polster
727ac9b47f
bottle: write bottles with new syntax
2021-02-03 20:46:20 -05:00
Seeker
4c42d717fd
rubocops: add cops to check bottle format, indentation, and order
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Co-authored-by: Seeker <meaningseeking@protonmail.com>
2021-02-03 20:46:20 -05:00
Carlo Cabrera
d3507d9899
test/language/java_spec: test both Mac and Linux
2021-02-02 15:05:29 +00:00
Rylan Polster
3b8fa5a7af
Merge pull request #10466 from Rylan12/rubocop-reduce-todo
...
Reduce rubocop violations in tests
2021-02-02 08:23:36 -05:00
Carlo Cabrera
a3692ce3af
Merge pull request #10479 from jonchang/fix-macos-java
...
java: fix java_home on macOS
2021-02-02 12:45:28 +00:00
Carlo Cabrera
234c1f14b8
java_spec: fix tests
...
The tests need to match the changes reverted in d6bba1c4938ea9c9a9d58ba2f209775dd71a8537.
2021-02-02 12:15:15 +00:00
Rylan Polster
3f2757fd79
rubocop: update test configuration
2021-02-01 20:30:51 -05:00
Rylan Polster
4a82d807e1
style: remove RSpec/MultipleDescribes violations in commands
2021-02-01 20:30:51 -05: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
Rylan Polster
3e00b3ea28
style: remove RSpec/ExampleLength violations
2021-02-01 20:30:51 -05:00
EricFromCanada
f39fb5d6b2
cask/config: new method for cask.config.explicit as string
2021-02-01 10:44:19 -05:00
Mike McQuaid
cdf8ff9052
Merge pull request #10266 from gromgit/prefix_non_installed
...
cmd/--prefix: add --installed flag
2021-02-01 09:05:28 +00:00
Mike McQuaid
b8d55e5a77
Merge pull request #10397 from MikeMcQuaid/deprecations-disables
...
Homebrew 3.0.0 deprecations/disables
2021-02-01 08:37:22 +00:00
Adrian Ho
28a8409b6e
cmd/--prefix: add --installed flag
...
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/local/opt/python@3.9
$
```
2021-01-31 16:09:43 +08:00
Mike McQuaid
e65e310fd0
Fix brew style
2021-01-29 20:56:59 +00:00
Mike McQuaid
d6957a3acb
Homebrew 3.0.0 deprecations/disables
2021-01-29 19:50:24 +00:00
Seeker
1ce8bd00fb
named_args: print error if formula and cask found but one is unreadable
2021-01-28 15:21:23 -08:00
Seeker
89930157b5
named_args: raise rescued error if both formula/cask are unreadable
2021-01-28 15:21:23 -08:00
Michka Popoff
38ae6e0c0d
style: re-enable sha256 checks for bottle blocks
...
Follow up PR to #10450
2021-01-28 20:35:31 +01:00
Mike McQuaid
4afebd2872
Fixup brew bottle
(and tests) for #10447 .
2021-01-28 13:19:41 +00:00
Michka Popoff
838cf2fc58
bottle_spec: run generate_sha256_line test on mac too
2021-01-28 13:19:40 +00:00
Mike McQuaid
902993afe4
dev-cmd/bottle_spec: add another integration test on macOS.
2021-01-28 13:19:40 +00:00
Michka Popoff
de2e309d50
cellars: write tag specific cellars
...
With #10186 now merged, the tag specific cellar information is being read by brew.
This PR (once merged) will start adding the cellar information for each tag instead
of having a single cellar line on the top of the bottle block.
Each new CI build in homebrew-core will slowly start migrating the cellar lines to
the right place. If keep-old is used, the old "all tag" cellar line is removed and
added to each tag.
2021-01-28 13:19:40 +00:00
Mike McQuaid
fc1c142ebd
software_spec: reverse tag/digest for new bottles.
...
This new format was agreed in #10377
2021-01-28 13:15:41 +00:00
Mike McQuaid
623e2d95af
Revert "cleanup_spec: inline path creation."
...
This reverts commit 3724c739f880945ec76a16ef8b9209c6440f0035.
2021-01-28 08:13:08 +00:00
Rylan Polster
5b2f8a5a73
Merge pull request #10431 from Rylan12/fish-completions
...
Generate fish completions automatically
2021-01-27 17:46:34 -05:00
Mike McQuaid
a83848d24f
Merge pull request #10439 from MikeMcQuaid/fix_retry
...
spec_helper: fix and improve retry logic.
2021-01-27 19:37:10 +00:00
Mike McQuaid
03c861b7d7
Merge pull request #10428 from SeekingMeaning/cask-reverse-migration
...
cask/audit: disallow new cask to have token in tap_migrations.json
2021-01-27 15:07:13 +00:00
Mike McQuaid
3724c739f8
cleanup_spec: inline path creation.
...
Let's see if this makes the test more reliable.
2021-01-27 15:06:06 +00:00
Mike McQuaid
da94957b01
tests: verbose tests with --verbose or --debug.
...
The `VERBOSE_TESTS` variable was from cask and never gets set (and
is unset by `bin/brew`). Replace it with `HOMEBREW_VERBOSE_TESTS` and
set it by `--verbose` or `--debug`.
While we're here, remove an unneeded `VERBOSE` delete (as it's already
done by `bin/brew`).
2021-01-27 15:04:13 +00:00
Mike McQuaid
f38707e92a
spec_helper: fix and improve retry logic.
...
- always retry each test at least once (confusingly this means a retry
count of 2 rather than 1)
- always wait at least 1 second between retries
- set a default retry metadata for integration tests rather than
overriding any specified values
- use `example.run` rather than `example.run_with_retry` for integration
tests because, confusingly, this avoids having the retry count be
half what it should be (because the attempts increases by one for
each `run_with_retry` call)
- use 4 retries for integration tests with 2**attempts*retry_wait
(retry wait now being 2) to actually have more retries than before
this commit (but with exponential backoff)
This should generally improve test flakiness in CI but particularly
improve the cleanup test flake we've seen recently.
2021-01-27 12:43:30 +00:00
Mike McQuaid
10a5434ef1
Merge pull request #10429 from MikeMcQuaid/yamllint
...
Autoformat YAML files
2021-01-27 12:15:27 +00:00
Seeker
bd7a660328
Merge pull request #10422 from SeekingMeaning/named-args-unreadable-tests
...
named_args_spec: add tests for unreadable formulae/casks
2021-01-26 22:45:28 -08:00
EricFromCanada
6fc116318e
fixes for grammar and wording
2021-01-26 16:19:47 -05:00
EricFromCanada
99ad3350ee
use single quotes around stanza and parameter names
2021-01-26 16:19:47 -05:00
EricFromCanada
2ed324ebc0
use backticks around suggested input, flags, and binaries
2021-01-26 16:19:47 -05:00
EricFromCanada
cd3cb6928b
indent suggested commands on subsequent line
...
and combine sequential puts calls
2021-01-26 15:36:44 -05:00
EricFromCanada
a427de5bee
capitalization fixes
...
"curl" is the binary, while "cURL" is the umbrella project.
2021-01-26 15:36:44 -05:00
Seeker
c1d2aaf13a
cask/audit: disallow new cask to have token in tap_migrations.json
2021-01-26 08:33:14 -08:00
Rylan Polster
541a981d37
completions: generate fish completions
2021-01-26 10:47:56 -05:00
Nanda H Krishna
5f5930255e
Merge pull request #10417 from nandahkrishna/bump-tests
...
dev-cmd/bump: increase test coverage
2021-01-26 18:58:43 +05:30
Mike McQuaid
92d107d666
Autoformat YAML files
...
Extracted the `.rubocop_todo.yml` change from #10397 so thought I'd do
this to all committed (non-vendor) YAML files.
2021-01-26 10:16:32 +00:00
Seeker
6e0bf05fb5
named_args_spec: add tests for unreadable formulae/casks
2021-01-25 18:46:33 -08:00
Rylan Polster
0c5edf4004
Cleanup description handling
2021-01-25 13:46:51 -05:00
Rylan Polster
6cf5d1aa17
completions: add tests
2021-01-25 13:46:51 -05:00