aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2017-05-31audit: Port audit_caveats method to rubocop and add testsGautham Goli
2017-05-30Merge pull request #2704 from MikeMcQuaid/jenkins-brew-shMike McQuaid
Update jenkins.brew.sh links.
2017-05-30Update jenkins.brew.sh links.Mike McQuaid
These previously, incorrectly pointed to bot.brew.sh. Fixes #2703.
2017-05-30audit: Port audit_text method to rubocop and add testsGautham Goli
2017-05-30Fix Linux buildMike McQuaid
Remove `testbottest` formula (this should have lived in the `brew test-bot` repository from the outset) and make various other changes to fix the Linux build here.
2017-05-29Fixup all RuboCop warnings.Mike McQuaid
2017-05-29Use parallel RuboCopMike McQuaid
This requires updating to Rubocop 0.49.0 which will require some fixes to rules, in Homebrew/brew and Homebrew/homebrew-core but opening this for now so I remember.
2017-05-29Merge pull request #2663 from reitermarkus/lockfileMarkus Reiter
Convert `FormulaLock` to more generic `LockFile`.
2017-05-29Merge pull request #2682 from MikeMcQuaid/improve-installed-messagingMike McQuaid
Improve some `brew install` messaging.
2017-05-29Merge pull request #2687 from issyl0/fix_formula_description_regexMike McQuaid
Match the "formula name in description" on word boundaries
2017-05-29Match the "formula name in description" on word boundariesIsabell Long
- The regexp for the "check if formula name is used in formula's description" cop matches every instance of the formula name if it exists, whether it's in a word or not. - For example, the formula `mon` has the description "Monitor hosts/services/whatever and alert about problems". This makes `brew audit --strict` complain because it matches "Monitor", which isn't the formula name! The formula `pass` has the description "Password manager". Again, the strict audit matches "Password", which isn't an issue. - Instead, this change matches on a word boundary, so it will match `mon:`, or `mon `, but not "Monitor", or, for example, "harmony". - I've changed the tests to account for this change.
2017-05-27diagnostic: move some more macOS doctor checks.Mike McQuaid
Move some `brew doctor` checks that are pretty macOS specific so they are only run on macOS.
2017-05-27Improve some `brew install` messaging.Mike McQuaid
Improve the messaging around `brew install` when there's a possible user action such as an `upgrade` or `link` and don't tell people to `install --force` when it's unnecessary. While I did this, tweak the output and function usage in a couple of related places. Some example output before this change: ``` Warning: openssl is a keg-only and another version is linked to opt. Use `brew install --force` if you want to install this version Warning: mysql@5.6 is a keg-only and another version is linked to opt. Use `brew install --force` if you want to install this version Warning: analog-6.0_1 already installed Warning: bash-completion@2-2.5 already installed, it's just not linked. ``` Some example output after this change: ``` Error: openssl 1.0.2k is already installed To upgrade to 1.0.2l, run `brew upgrade openssl` Warning: mysql@5.6 5.6.36_1 is already installed Warning: analog 6.0_1 is already installed Warning: bash-completion@2 2.5 is already installed, it's just not linked. You can use `brew link bash-completion@2` to link this version. ```
2017-05-25Rename `FormulaLock` to `LockFile`.Markus Reiter
2017-05-24Deprecate `--caskroom` flag.Markus Reiter
2017-05-24Add test for `--binaries` default value.Markus Reiter
2017-05-22Fix tests for `CLI::Options` DSL.Markus Reiter
2017-05-22Refactor `CLI::Style`.Markus Reiter
2017-05-22Refactor `CLI::Home`.Markus Reiter
2017-05-22Refactor `CLI::Edit`.Markus Reiter
2017-05-22Refactor `CLI::Create`.Markus Reiter
2017-05-22Refactor `CLI::Cleanup`.Markus Reiter
2017-05-22Refactor `CLI::Audit`.Markus Reiter
2017-05-22Remove Cask’s `CLI#debug?`.Markus Reiter
2017-05-22Pass along `CLI::Binaries`.Markus Reiter
2017-05-19Merge pull request #2638 from reitermarkus/matchersMarkus Reiter
Use scoped RSpec matchers.
2017-05-19Merge pull request #2623 from rednoah/masterMarkus Reiter
Support GPG (signed data) container in Homebrew Cask
2017-05-18Merge pull request #2537 from reitermarkus/pathname-to_strMarkus Reiter
Remove `to_s` from some `Pathname`s.
2017-05-15Use scoped RSpec matchers.Markus Reiter
2017-05-15Merge pull request #2631 from GauthamGoli/audit_homepage_rubocop1.2.1Mike McQuaid
audit: Port audit_homepage method to rubocop and add tests
2017-05-15Merge pull request #2628 from GauthamGoli/formula_desc_cop_fixMike McQuaid
audit: Detect multiline and interpolated strings in formula desc cop
2017-05-14Port audit_homepage method to rubocop and add testsGautham Goli
2017-05-14Merge pull request #2620 from MikeMcQuaid/more-env-filtering-tweaksMike McQuaid
More environment filtering tweaks
2017-05-13Update string_content method to support multiline strings, add test for sameGautham Goli
2017-05-13More environment filtering tweaksMike McQuaid
- only document HOMEBREW_* variables in the manpage (although still read from all the original environment variables). - resort manpage environment variables in alphabetical order - check the original path for trailing slashes
2017-05-13Add autocorrect method for ComponentsOrder rubocop and testsGautham Goli
2017-05-11Support GPG (signed data) container in Homebrew Cask (test case)Reinhard Pointner
2017-05-10diagnostic_spec.rb: check_access_lock_dir testmansimarkaur
Added assertion to check `HOMEBREW_LOCK_DIR.stat.mode` changes after `HOMEBREW_LOCK_DIR.chmod 0555`
2017-05-08Remove `to_s` from some `Pathname`s.Markus Reiter
2017-05-08Travis CI tweaks.Mike McQuaid
Attempt to improve Travis CI. This time without any vendoring gems nonsense.
2017-05-07Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"Mike McQuaid
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07Revert "Merge pull request #2603 from MikeMcQuaid/tweak-gem-vendoring"Mike McQuaid
This reverts commit 2372872974d1049c2beafe7dedb7f8f882502058, reversing changes made to 3e4547f52e7ebec633f8bfefc8a396d944edf908.
2017-05-07Tweak Gem vendoring.Mike McQuaid
If people have `HOMEBREW_RUBY_PATH` set then things explode in a rather confusing fashion. Instead, run `bundle` for them with the arguments that they'd want. Also, move `macho` requires into the module itself; it's a pain having to do everything for Bundler before requiring `pathname` which is a core Ruby class.
2017-05-07Vendor all Homebrew's gems.Mike McQuaid
Homebrew's actually ended up using a fair few gems. While we want to avoid Bundler at runtime (and this PR still does that, in fact uses Bundler even less at runtime than it did before) writing our own version to use at build-time seems redundant.
2017-05-03Merge pull request #2531 from GauthamGoli/audit_cops_options_refactorMike McQuaid
audit: Allow skipping/selective running of cops and cops refactor
2017-05-03Merge pull request #2577 from DomT4/keg_only_style_tweaksMike McQuaid
caveats: tweak keg_only style
2017-05-03Add `--only-cops`,`--except-cops` options for brew style and simplify cop namesGautham Goli
2017-05-03Install etc/var files on postinstall.Mike McQuaid
Also, don't delete them after that. This means that `brew postinstall` becomes a way to easily reinstall configuration files for any formula without needing any changes to any bottles or requiring a reinstall.
2017-05-02audit_spec: add keg_only_style testsDominyk Tiller
2017-05-02Add `--only-cops`,`--except-cops` options for brew auditGautham Goli
Also refactor audit cops into two "departments" - FormulaAudit - FormulaAuditStrict