52 Commits

Author SHA1 Message Date
Rylan Polster
6dec175574 tap-new: don't need to checkout default branch 2020-10-15 16:56:53 -04:00
Rylan Polster
64d135d0a7 tap-new: add option for branch name 2020-10-15 15:00:35 -04:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Dawid Dziurla
843dffea78
tap-new: enable bottles publishing
to GitHub Releases
2020-10-02 13:49:24 +02:00
Mike McQuaid
d2fc08d942
GitHub Actions cleanup
- Add consistent spacing
- Remove `pull_request: []` warning
- remove identical, implicit `name` usage
- use `actions/cache@v1` for compatibility
2020-08-13 14:54:22 +01:00
Issy Long
2cf655fe98
Merge pull request #8304 from PurpleBooth/fix-warning
Correct warning
2020-08-11 20:15:08 +01:00
Billie Thompson
705f26734a
Correct warning
Currently, if you open up a action generated by the tap-new command in
the github GUI, you get a warning saying "pull_requests should be an
object". This fixes that.

This wasn't stopping anything working currently, though I suppose it may
in the future.

Co-authored-by: Issy Long <me@issyl0.co.uk>
2020-08-11 20:03:30 +02:00
Billie Thompson
b5c98090d0
Add missing id
This will always fail until the cache step can refer to setup step
2020-08-10 20:52:47 +02:00
Mike McQuaid
3e4da13934
Cleanup more GitHub Actions usage
Increase consistency between workflows, use more of our actions and
`@main`.
2020-08-06 19:35:39 +01:00
Mike McQuaid
b0d26b0dcf
workflows/tests: use setup-homebrew GitHub Action.
This allows more code reuse.
2020-08-06 10:55:18 +01:00
Mike McQuaid
acfdbce6d4
tap-new: update GitHub Actions.
This should be using the split options for a better user experience
and can use both Linux and macOS now.
2020-08-04 11:57:39 +01:00
Markus Reiter
d4c2ffd705 Refactor CLI::Parser. 2020-07-31 15:07:17 +02:00
Mike McQuaid
f94a38e4b1
tap-new: restrict new tap names.
Don't want to restrict this for all taps otherwise existing ones may
explode.

Fixes #7734
2020-06-12 11:42:40 +01:00
Mike McQuaid
9a654897d4
manpage: no longer mention installing from a URL.
This is deprecated in #7660.
2020-05-29 17:04:42 +01:00
Mike McQuaid
e3ac94fc5d
dev-cmd: use more and cleanup new args APIs. 2020-03-05 09:40:15 +00:00
Issy Long
b3abf3d7c9
dev-cmd/tap-new: Set up GitHub Actions CI instead of Azure
- We recently removed Azure as a supported CI provider
  (Homebrew/homebrew-test-bot PR 325), so `brew test-bot` won't run on
  Azure any more.
- Homebrew CI is moving towards GitHub Actions as the standard.
2020-02-15 17:39:33 +00:00
EricFromCanada
aea6d79d21 option parser: check for extra named args 2019-12-15 00:04:45 -05:00
EricFromCanada
2f7c3afeb8 cmd: improve wording of messages, spacing 2019-12-15 00:04:45 -05:00
Abi أب
990d45881f
Use Xcode_10.2.1
`brew doctor` will return exit code 1 if using Xcode_10.2

```==> brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Your Xcode (10.2) is outdated.
Please update to Xcode 10.2.1 (or delete it).
Xcode can be updated from the App Store.

==> FAILED
```
2019-10-28 23:59:01 +01:00
L. E. Segovia
9050d0a7b1
Use Xcode 10.2 for new taps too
See https://github.com/Homebrew/brew/pull/6083
2019-05-09 23:59:43 +00:00
Steven Peters
d6bd271986 dev-cmd/tap-new: azure script to use 10.14 2019-05-09 20:03:31 +00:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Mike McQuaid
e40b171127
Rename cli_parser to cli/parser. 2019-04-17 22:16:50 +09:00
Mike McQuaid
3615f891f7
tap-new: improve output.
Note the tap path.

References #5901.
2019-03-23 12:41:35 +00:00
Jonathan Chang
cc9479772f tap-new: use real repo name 2019-03-14 23:51:09 +11:00
Mike McQuaid
bbea109926
dev-cmd: remove --help headers and tweak docs. 2019-01-30 21:39:28 +00:00
Mike McQuaid
382e0ed7b4
azure-pipelines-yml: early exit on errors.
We don't want to silently ignore failing commands.

Also, while we're editing the `tap-new` generated `azure-pipelines.yml`
also add the changes missed here from #5600.
2019-01-24 20:45:00 +00:00
Mike McQuaid
61fa59e95b
Remove Travis CI specific code
We’re no longer using this for our CI so this is no longer necessary.

Also, migrate `brew tap-new` to use Azure pipelines.
2018-12-30 21:13:24 +00:00
EricFromCanada
388781f6a7 dev-cmd/: remove colons from command specs.
These aren't needed when converting Parser-based help text to man page or Markdown formats.
Includes regenerated docs.
2018-10-19 13:12:55 -04:00
EricFromCanada
ddf057f3dd dev-cmd/: edit help text and descriptions. 2018-10-19 13:12:11 -04:00
Gautham Goli
7b0f27ca39
style: Fix style errors 2018-10-03 19:49:46 +05:30
Gautham Goli
446b1cb9e3
man: Seperate global options into a section 2018-10-03 19:49:45 +05:30
Gautham Goli
e0e876cf37
man: Make command heading H3 2018-10-03 19:49:44 +05:30
Gautham Goli
4f58f2db99
man: Generate dev cmd manpages 2018-10-03 19:49:41 +05:30
Gautham Goli
b6c456b681
Extract out arg parsing method to <cmd>_args method 2018-10-03 19:19:04 +05:30
Markus Reiter
e9b9ea49a1 Update to RuboCop 0.59.1. 2018-09-17 03:45:59 +02:00
Shaun Jackman
f6093961ef Add Homebrew::DEFAULT_PREFIX for Linux
The default prefix is /usr/local on macOS
and /home/linuxbrew/.linuxbrew on Linux.
2018-09-11 09:57:08 -07:00
Markus Reiter
7762ce32aa Use more descriptive heredoc names. 2018-07-11 18:15:30 +02:00
Gautham Goli
d22b750e17 Store common switch as Homebrew.args global var 2018-04-10 00:00:35 +05:30
Mike McQuaid
9fca172d03 Fix HOMEBREW_RUBY_WARNINGS="-w"
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Mike McQuaid
d4a3fc088f travis.yml: fix bundler caching. 2018-02-27 14:30:30 +00:00
Mike McQuaid
d1d4a667d1 tap-new: update based on Homebrew/brew travis.yml. 2018-01-26 21:47:33 +00:00
Markus Reiter
9bee9ca575 Use “squiggly” heredocs. 2017-10-18 14:39:09 +02:00
Mike McQuaid
baa61f5a6e Use https for all docs.brew.sh links.
May as well use the more secure link when possible.
2017-07-27 15:59:37 +01:00
Mike McQuaid
9853a78397 Travis CI tweaks.
Attempt to improve Travis CI. This time without any vendoring gems
nonsense.
2017-05-08 08:38:25 +01:00
Mike McQuaid
a76392dd5f Revert "Merge pull request #2602 from MikeMcQuaid/travis-ci-tweaks"
This reverts commit 8d948e4b0b55912c592d34cb5ea83c649b1f9d5e, reversing
changes made to 2372872974d1049c2beafe7dedb7f8f882502058.
2017-05-07 17:28:34 +01:00
Mike McQuaid
5cdb0d0a6d Travis CI tweaks
Tweak our Travis CI configuration and the one we suggest for taps to
be faster and use caching.
2017-05-07 16:00:04 +01:00
Mike McQuaid
0cedb4db08 tap-new: bump Xcode to 8.3.
Update this to the current latest Travis CI supports (which we're using)
2017-04-27 08:56:46 +01:00
Mike McQuaid
5fc4cabdeb tap-new: fix symlink creation.
Ensure the full HOMEBREW_TAP_DIR path is created before deleting and
creating the symlink for it. This ensures that non-`homebrew` taps will
have the necessary username/organisation folder created.

Fixes #2378.
2017-03-22 21:23:00 +00:00
Mike McQuaid
0d8fc920d6 tap-new: use latest Travis CI recommended config.
Pretty sure no-one cares about this except me but this works
consistently across a variety of different taps and is faster than the
old version.
2016-12-03 13:47:52 +00:00