Bo Anderson
9a8a4cff9f
test/dev-cmd/style_spec: fix flaky test
2020-04-15 10:56:09 +01:00
Mike McQuaid
85e65f6d9c
Move some cmd to dev-cmd.
...
None of these made sense as end-user commands.
2020-04-14 14:29:38 +01:00
Jonathan Chang
7d63f0b506
github: improve tests
2020-04-14 13:41:35 +10:00
Mike McQuaid
d52e870b07
rubocop: remove NewFormulaAudit.
...
This is no longer used anywhere.
2020-04-13 16:01:26 +01:00
Mike McQuaid
ea77fce409
rubocops/lines: move strict cop.
2020-04-13 16:01:25 +01:00
Mike McQuaid
9b5a0767cb
rubocops/formula_desc: merge cops, slim whitelist.
2020-04-13 16:01:25 +01:00
Mike McQuaid
476a61f51c
rubocops/class: rename, move cops, readd strict.
2020-04-13 16:01:25 +01:00
Jonathan Chang
ac5ea023cf
Merge pull request #7344 from jonchang/pr-automerge
...
dev-cmd: add pr-automerge
2020-04-13 20:39:42 +10:00
Jonathan Chang
5a95fe14aa
dev-cmd: add pr-automerge
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-04-13 20:14:40 +10:00
Mike McQuaid
cbb5fd7657
Merge pull request #7257 from iMichka/linuxdependson
...
formula: add on_macos and on_linux
2020-04-13 09:13:06 +01:00
Michka Popoff
c7927f5af5
formula: add linux and macos only function blocks
2020-04-12 23:51:41 +02:00
Mike McQuaid
6ea6db9026
dev-cmd/audit: test presence of formulae in lists.
2020-04-12 14:17:06 +01:00
Mike McQuaid
b75733f1bd
rubocops: downgrade strict cops (passing in core).
2020-04-12 14:17:06 +01:00
Mike McQuaid
56c02485e0
rubocops: test whitelists.
2020-04-12 14:17:05 +01:00
Markus Reiter
30c313b7b9
Refactor cask command parsing logic.
2020-04-11 01:29:44 +02:00
Markus Reiter
a6be0e62af
Improve spec helper.
2020-04-10 19:39:43 +02:00
Mike McQuaid
bd082011c2
Merge pull request #7280 from issyl0/audit-uses-from-macos
...
audit: Check if `uses_from_macos` usage is correct
2020-04-07 12:47:30 +01:00
Mike McQuaid
33816131a8
Homebrew::EnvConfig: add tests.
2020-04-07 10:00:32 +01:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig.
2020-04-07 09:58:26 +01:00
Dario Vladovic
d12784533b
Update options spec
2020-04-06 15:24:15 +02:00
Dario Vladovic
3a21ca8956
Implement mdimporter
cask stanza
2020-04-06 15:24:14 +02:00
Issy Long
857393ccfb
Audit correct uses_from_macos
usage with RuboCop
...
- This builds on @jonchang's work that started in #6265 .
- We now use `uses_from_macos` to declare dependencies that are implicit
on macOS because they ship with macOS, but they're needed on Linux. We
have to be sure that the dependencies people specify as
`uses_from_macos` are actually shipped with macOS. So, we maintain a
safelist of those dependencies and check against it.
- Also add more legitimate `uses_from_macos` dependencies to the list.
- This is runnable with `brew audit --only-cops=FormulaAudit/UsesFromMacos`.
- It produces different number of failures on macOS vs. Linux, because
apparently we've not synced Homebrew/linuxbrew-core upstream thoroughly
enough yet.
- Originally this was designed as a `--strict` audit, but we flipped it
to be a normal audit because - to quote Mike - this is "sufficiently
robust" now.
2020-04-06 13:42:27 +01:00
Bob Wombat Hogg
1a32ba3d2b
system_command_spec: Make part of bash error regex optional
2020-04-05 11:05:30 -04:00
Mike McQuaid
c0dca271ef
Merge pull request #7144 from spaceapegames/master
...
Add headers option to URLs in forumlas
2020-04-01 16:22:35 +01:00
Bo Anderson
4265540cc4
load_path: trim entries where possible to fix Ruby crashes
2020-04-01 11:53:54 +01:00
Mike McQuaid
6277263b3c
Merge pull request #7225 from bayandin/add-free-port
...
Library/Homebrew: add free_port test helper
2020-03-31 09:06:04 +01:00
Alexander Bayandin
bfcba0f5f0
Library/Homebrew: add free_port test helper
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-03-31 00:00:11 +01:00
Mike McQuaid
bd076049a0
integration_test: only run on system Ruby.
...
There appear to be random, seemingly impossible to debug issues with
running integration tests on portable Ruby. Instead of confusing
contributors when these will be run on CI anyway: let's just skip them
by default (like we do with `--online` for online tests anyway).
2020-03-30 20:25:42 +01:00
Jonathan Chang
0d3a4d98c0
utils/github: add test for fetch_artifact
2020-03-30 22:41:17 +11:00
Jonathan Chang
bab564f203
pr-pull: add tests
2020-03-30 22:41:17 +11:00
Jonathan Chang
282bfbf70a
bintray: add tests
2020-03-30 22:41:17 +11:00
Vítor Galvão
2e8aa3eb97
Use long --disable instead of short -q in curl
2020-03-29 20:04:37 +01:00
Bo Anderson
c241dccbc8
test/resource_spec: fix flaky test
2020-03-28 00:10:42 +00:00
Bo Anderson
3955e7e13b
language/test: add shebang tests
2020-03-27 19:18:25 +00:00
Mike McQuaid
fa8fe0fc39
Merge pull request #7200 from dawidd6/create-ruby
...
create: add --ruby option
2020-03-24 13:50:35 +00:00
Dawid Dziurla
626f9406b1
remove flaky cask upgrade test
2020-03-23 19:27:48 +01:00
Jonathan Chang
86f245effb
dev-cmd: new pr-publish command
2020-03-22 13:35:15 +11:00
Markus Reiter
50b61fa7f2
Retry curl
requests 3 times by default.
2020-03-20 18:40:43 +01:00
Alexander Bayandin
b37c3e9cb2
rubocops/patches: suggest url with full_index=1
2020-03-15 11:24:38 +00:00
Mike McQuaid
1e265247ca
rubocop: apply autofixes.
2020-03-13 21:16:18 +00:00
Jonathan Chang
57109a175a
diagnostic: add doctor check for CPU arch on Linux
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-03-13 11:39:27 +11:00
Chris Tompkinson
af3010758a
appease rubocop
2020-03-10 10:51:20 +00:00
Chris Tompkinson
160b2c40d0
Add covering test for headers
2020-03-10 10:47:18 +00:00
Mike McQuaid
78140cef4a
Merge pull request #7073 from alexreg/issue-7068
...
audit: ignore group write bit
2020-03-06 14:08:45 +00:00
Alexander Regueiro
68047abc0e
audit: ignore group write bit
2020-03-05 23:01:41 +00:00
Mike McQuaid
67d7697165
Merge pull request #7120 from MikeMcQuaid/args-tweaks
...
cli/parser: add and use more helpers.
2020-03-05 12:21:24 +00:00
Mike McQuaid
42477a1aaa
Merge pull request #7125 from Bo98/make-regex
...
extend/string: match multiline make variables
2020-03-05 09:29:52 +00:00
Mike McQuaid
677e6c972a
Merge pull request #7123 from dawidd6/resource-build-and-test
...
dependency_collector: make resource dep available at test-time too
2020-03-05 09:29:17 +00:00
Mike McQuaid
495daf0aee
extend/ARGV: remove/private unused methods.
2020-03-05 09:25:14 +00:00
Mike McQuaid
66155ea370
cli/parser: add named/min_named helpers.
2020-03-05 09:25:14 +00:00