Commit Graph
2993 Commits
Author SHA1 Message Date
Mike McQuaid eb9a31b52b requirement_spec: use describe correctly. 2019-09-27 15:27:21 +01:00
Gautham Goli e88f6b9da9 args: Add passthrough method and tests 2019-09-26 10:33:40 +05:30
Gautham Goli d18b122272 cli_args: Fix options_only and flags_only 2019-09-22 20:28:43 +05:30
Alec Clarke af10d13381 Check blacklisted Casks when auditing.
In some cases, certain Casks shouldn't be resubmitted for specific reasons: difficult to maintain, developers maintain their own version, ...

To make sure these cases are restricted - we can add them to a blacklist and have the blacklist checked as part of the `brew cask audit` steps.
2019-09-17 06:29:46 -07:00
Markus Reiter d8afed206f Use AppleScript to check if GUI apps are running. 2019-09-15 01:37:04 +02:00
Markus Reiter f010aa48ff Skip AppleScript actions if Automation Access isn't granted. 2019-09-13 16:35:44 +02:00
Mike McQuaidandGitHub 963cc556d4 Revert "argv: move options_only to cli/args" 2019-09-13 09:34:43 +01:00
Mike McQuaidandGitHub 7df0292f9b Revert "argv: move flags_only to cli/args" 2019-09-13 09:12:26 +01:00
Gautham Goli c7681c4287 argv: move flags_only to cli/args 2019-09-09 14:51:36 +05:30
Gautham Goli 4586632855 argv: move options_only to cli/args 2019-09-07 21:32:50 +05:30
Sean Molenaar 8cb833f7da Audit bitbucket.com repositories 2019-09-05 20:56:25 +02:00
Sean Molenaar 0cca6cb8bd Audit gitlab.com repositories 2019-09-05 12:14:33 +02:00
Mike McQuaid 4add1d1cb3 Check binary URL resources with RuboCop
- Migrate the existing binary URL audit to a RuboCop.
- Check resources as well as main URLs
- Also check for "macos" and "osx" in URLs
- Add whitelists for URLs and formulae
2019-09-02 10:50:49 +01:00
Mike McQuaid 82e314c467 messages_spec: handle frozen Homebrew.args.
This is an order dependent test failure fix as seen in
https://travis-ci.org/Homebrew/homebrew-test-bot/builds/574559080
2019-08-21 09:08:47 +01:00
Markus Reiter 16d2f8264c Use MacOSRequirement for casks. 2019-08-21 06:57:21 +02:00
Markus Reiter 78aee4fed3 Merge MaximumMacOSRequirement into MacOSRequirement. 2019-08-21 06:57:21 +02:00
Mike McQuaid 67f960ba67 GitHub Actions CI
Try to setup GitHub Actions CI.
2019-08-19 20:38:19 +01:00
Jonathan Chang 7ddc185b35 Fix various typos 2019-08-19 16:12:34 +10:00
Mike McQuaidandGitHub de72a23109 Merge pull request #6321 from zachauten/uninstall-suggestions
cask_reason will suggest `brew cask uninstall`
2019-08-02 06:52:31 +01:00
Zach Auten ecc7b9e174 cask_reason will suggest brew cask uninstall 2019-07-31 00:31:12 -04:00
Mike McQuaidandGitHub 1cd45a769d Merge pull request #6330 from hogand/add-upgrade-dry-run
Add --dry-run to brew upgrade and brew cask upgrade
2019-07-28 15:18:13 +01:00
Mike McQuaid 1d62067883 test/spec_helper: handle needs_linux.
Add similar logic to that for macOS.
2019-07-28 14:11:29 +01:00
Mike McQuaid 9354081323 Add HOMEBREW_DISPLAY_INSTALL_TIMES
Fixes #6300
2019-07-28 11:12:32 +01:00
Doug Hogan 7f6ef77d0e Address PR comments: remove test and use return ... if 2019-07-27 07:36:11 -07:00
Doug Hogan 55fcd01bed cask/cmd/upgrade: add --dry-run option. 2019-07-26 23:20:56 -07:00
Doug Hogan 9e0e012a56 cmd/upgrade: add --dry-run option. 2019-07-26 23:20:51 -07:00
Mike McQuaid 3dc82bc8bf Commit 'brew style --fix' results. 2019-07-23 17:09:57 +01:00
Cheng XU 1d957c2029 system_command: automatically find secrets from ENV 2019-07-18 15:10:15 +08:00
Cheng XU 66697d4290 ENV: add sensitive_environment function
ENV#sensitive_environment is used to list all sensitive environments.

Also refactor the code on determining whether an environment is sensitive.
2019-07-18 15:06:33 +08:00
Cheng XU 9232ca4508 system_command: allow redacting secrets in the log
Add a new argument `secrets` to specify secret tokens, so we can redact them in the log.
2019-07-18 15:06:32 +08:00
Michka Popoff a70179d8b7 pull: extract bottle publishing code
and add tests
2019-07-03 21:18:17 +02:00
Michka Popoff fb643a28f0 pull_spec: fix test 2019-07-03 21:05:21 +02:00
Michka Popoff 3c25ddc6ed pull: allow to pull from merge commits 2019-07-03 21:05:21 +02:00
Zach Auten 25e7eaee1f brew install will suggest brew cask install
If the user tries to install a cask using brew install
then brew will suggest the user tries 'brew cask install'

closes #6245
2019-06-22 14:21:56 -04:00
Cheng XU 2bd9b2774d java_requirement: set cask attribute
Set `@cask` attribute for JavaRequirement, which is used by
`brew info` to track cask requirement for formulae and
`brew bundle dump` to sort the formulae and casks.

Before:
```
$ brew info --json languagetool | jq '.[0].requirements'
[
  {
    "name": "java",
    "cask": null,
    "download": null
  }
]
$ brew cask install adoptopenjdk; brew install languagetool
$ brew bundle dump
brew "languagetool"
cask "adoptopenjdk"
```

After:
```
$ brew info --json languagetool | jq '.[0].requirements'
[
  {
    "name": "java",
    "cask": "adoptopenjdk",
    "download": null
  }
]
$ brew cask install adoptopenjdk; brew install languagetool
$ brew bundle dump
cask "adoptopenjdk"
brew "languagetool"
```

Also added relevant test cases.
2019-06-10 10:37:09 +08:00
Izaak Beekman 75bc30bfff Limit veclibfort & lapack cop to core & add tests 2019-06-06 18:09:44 -04:00
Izaak Beekman 65fbcc86d0 Add test for MPI choice cop's autocorrect 2019-06-06 16:46:17 -04:00
Izaak Beekman ffe30058ab Add MPICH cop and test
- Split off from PR Homebrew/brew#6209
 - Create stand alone class for cop w/ auto-correct
2019-06-06 16:28:54 -04:00
Misty De Meo 5ab34abd17 Bottles: allow skipping or_later tags
This is a developer-only feature, so it's gated via `HOMEBREW_DEVELOPER`.
This is intended to enable testing of macOS 10.15; users building software
manually to test compatibility of early betas need to be able to build
software from source instead of via pouring 10.14 bottles. This isn't
intended to be a general-purpose `HOMEBREW_BUILD_FROM_SOURCE` replacement,
and has no effect on released versions of macOS.
2019-06-06 10:14:10 -07:00
Shaun JackmanandGitHub 7c5f71e5ac Merge pull request #6162 from gkpacker/add_uses_from_macos
Add uses from macos
2019-06-05 08:23:17 -07:00
Gabriel 9fa8dc5d89 Remove old os/mac/formula spec 2019-06-03 15:52:53 -03:00
Gabriel 678f89ff21 Fix typo 2019-06-03 15:52:53 -03:00
Gabriel b2969e6063 Add needs_linux tag to specs that fails on MacOS 2019-06-03 15:52:53 -03:00
Gabriel 41f39939ca Extract linux spec cases & add hash support to default #uses_from_macos 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 38653f0cbc Add default #uses_from_macos behaviour 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
Gabriel f2abaf6862 Add #uses_from_macos specs 2019-06-03 15:52:52 -03:00