379 Commits

Author SHA1 Message Date
Douglas Eichelberger
f83ba58f8d Port Homebrew::Cmd::Doctor 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
67fd065e1d Port Homebrew::Cmd::Docs 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
bde44cfc99 Port Homebrew::Cmd::Developer 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
1fc4a93ca1 Port Homebrew::Cmd::Desc 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
84222ec006 Port Homebrew::Cmd::Deps 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
3615e5e648 Port Homebrew::Cmd::Config 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
b97f9b22e2 Port Homebrew::Cmd::CompletionsCmd 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
02e2772e9d Port Homebrew::Cmd::CommandsCmd 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
adf47bb11b Port Homebrew::Cmd::Cleanup 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
a8f8c65d93 Port Homebrew::Cmd::Autoremove 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
3cedf33150 Port Homebrew::Cmd::Analytics 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
97370b4e6a Use @min_named_args to generate argv 2024-03-21 19:48:15 -07:00
Douglas Eichelberger
cda2761504 Preseve args_parse test for new commands 2024-03-15 12:46:06 -07:00
Douglas Eichelberger
cbcb221de6 Create AbstractCommand class 2024-03-15 12:46:05 -07:00
Markus Reiter
e3a102efd4
Make Tap::new private. 2024-03-06 15:10:14 +01:00
Markus Reiter
132a87aff5
Rename Tap#repo_var to Tap#repo_var_suffix. 2024-02-23 16:02:29 +01:00
Douglas Eichelberger
ab8f5702ac
git grep -l '^shared_examples' | xargs gsed -i 's|^shared_examples|RSpec.shared_examples|g' 2024-02-19 13:57:28 +00:00
Douglas Eichelberger
26eda5a303
git grep -l '^describe' | xargs gsed -i 's|^describe|RSpec.describe|g' 2024-02-19 13:57:27 +00:00
apainintheneck
5c41e85ae9 update cmd/uses and cmd/deps tests
These tests were very simple before and now this should result
in more code coverage without affecting test performance.

The only tricky thing was testing the `--missing` option without
actually installing a package using `install_test_formula` because
that is very slow (around 10 seconds on my machine). I ended
up just writing the tab to a plausible keg directory for each
package I wanted to "install". This allows us to test the behavior
while also not increasing CI time by ~20 seconds (though it'd
probably be faster on CI than my local machine).
2023-08-28 21:54:32 -07:00
Mike McQuaid
75dd070395
Remove Google Analytics
We are now entirely migrated to InfluxDB so can remove all GA code.
2023-06-16 10:33:15 +01:00
Markus Reiter
a3231a03fa
Implement cask renames. 2023-05-12 21:17:30 +02:00
Douglas Eichelberger
9075cbae62 brew style --fix 2023-04-21 09:58:50 -07:00
Douglas Eichelberger
ac1e6ded9a git grep -l '# typed: false' | xargs gsed -i 's|# typed: false||g' 2023-04-21 09:57:47 -07:00
Issy Long
3a83b5492c
rubocop: Clean up Style/BlockDelimiters excludes and autofix offenses
- The defaults of using "do ... end" for multi-line blocks everywhere is
  good, better than switching everything to braces everywhere.
2023-03-08 23:54:22 +00:00
Mike McQuaid
a743e9277f
workflows/tests: faster, more reliable tests.
- Extract update tests into separate tests.
- Make `brew tests --online` run only once in its own job. This job
  could be made non-required to fight flakiness.
- Split up the various macOS runs into several steps now that we have
  more parallel macOS workers available.
- Cleanup some flaky tests.
2023-02-17 15:26:18 +00:00
EricFromCanada
dfc9906184
internal messaging fixes 2023-02-10 23:17:16 -05:00
Douglas Eichelberger
bd62afde91 Resolve cmd/update-report_spec violation 2023-01-22 17:09:55 -08:00
Mike McQuaid
d1be288418
some needs_network specs: temporarily disable.
These are absurdly flaky right now so let's disable them.
2023-01-20 17:41:07 +00:00
Mike McQuaid
59f4b5226a
tests: test on Ubuntu 18.04. 2022-11-09 14:45:43 +00:00
Bo Anderson
af234779af
test: support non-master init.defaultbranch 2022-10-07 18:44:03 +01:00
apainintheneck
a178fc6a88 Cleanup no cask on linux specs 2022-10-02 08:51:17 -07:00
apainintheneck
5d27b70757 Set --formula by default on linux 2022-10-01 17:28:07 -07:00
apainintheneck
020c50e588 Warn linux users about using --cask 2022-10-01 16:11:39 -07:00
Mike McQuaid
c7bd51b995
Merge pull request #13844 from troymccabe/feature/13834-brew-docs-cmd
Adds `brew docs` to close #13834
2022-09-12 14:54:29 +01:00
Troy McCabe
ac9a96874e Adds brew docs to close #13834 2022-09-11 22:10:37 -05:00
Mike McQuaid
e2759fbdff
Deprecate reading all formulae through commands
We added the `--all` flag (now renamed to `--eval-all`) for various
commands for this behaviour so let's start deprecating this.

Also, introduce a `HOMEBREW_EVAL_ALL` environment variable to use the
existing, less secure, behaviour by default and avoid passing
`--eval-all` everywhere.
2022-09-05 13:57:22 +01:00
Lukas Oberhuber
2c829380b5 Test that --debug-symbols succeeds
Due to limitations of the test framework, this only tests
that the command with the --debug-symbols
flag succeeds and that on MacOS the `dsymutil` is run.
2022-08-11 10:54:18 -10:00
Lukas Oberhuber
3d60d610dd Merge branch 'master' into debug-symbols 2022-08-10 18:44:09 -10:00
Lukas Oberhuber
aa2682a098 These tests don't test anything
On MacOS, the compile flags `-g` are not set, and I can't figure out
how to set them here. `dsymutil` runs successfully regardless of if
there are debug symbols or not.
Same on linux therefore the test cannot succeed.
2022-08-10 16:55:19 -10:00
Lukas Oberhuber
19a66e75c4 Second try at objdump call for linux 2022-08-06 10:06:32 -07:00
Lukas Oberhuber
f930dd58a0 Fix style 2022-08-05 17:02:10 -07:00
Lukas Oberhuber
683bcd92b0 Attempted linux test 2022-08-05 16:54:32 -07:00
apainintheneck
d04051a9b9 Add integration tests for autoremove cmd 2022-08-02 18:20:38 -07:00
Lukas Oberhuber
89c1d6812d Test sources are dropped in HOMEBREW_CACHE/Sources 2022-08-02 09:06:28 -07:00
Lukas Oberhuber
fdf17f06b1 Test for dSYM directory on Mac 2022-08-01 16:30:00 -07:00
Lukas Oberhuber
bee3531090 Improve style 2022-08-01 15:25:34 -07:00
Lukas Oberhuber
15f1ac8775 Integration test for --debug-symbols
But only checks that the command works. Not that `dsymutil` is called
or that `-g` is added to the compile args.

(Not sure how to do either in an integration test.)
2022-07-30 11:23:40 +01:00
Bo Anderson
02164a35db
Use ORIGINAL_PATHS over envs; reject nil PATH 2022-06-17 19:47:57 +01:00
Bo Anderson
40bbdc659e
Fix some Style/FetchEnvVar offences 2022-06-17 19:47:57 +01:00
Mike McQuaid
04c8e02418
cmd/update-report: use better wording where appropriate.
From reading https://github.com/orgs/Homebrew/discussions/3328: I
initially thought we should just change "Updated" to "Modified" when
appropriate. After conversation with Bo98, though, I thought more and
saw that we're already checking for outdated formulae here so, rather
than ever traverse through the formula history, look at the outdated
formula and list them unless we've set
`HOMEBREW_UPDATE_REPORT_ALL_FORMULAE` in which case we show the
modifications.

While we're here, also do a bit of reformatting and renaming to better
clarify intent.
2022-06-03 19:23:38 +01:00