1238 Commits

Author SHA1 Message Date
Markus Reiter
0243e1f9a7 Add language method to OS::Mac. 2016-09-09 20:24:47 +02:00
Mike McQuaid
30fd4f3fe5 diagnostic: remove duplicate checks. 2016-09-09 13:08:02 +01:00
Mike McQuaid
930bcb7c52 Merge pull request #881 from MikeMcQuaid/dev-cmd-sticky-homebrew-developer
Set HOMEBREW_DEVELOPER automatically
2016-09-09 08:30:26 +01:00
Mike McQuaid
1d66cdd3ad Merge pull request #863 from penman/preserve_alias
Save aliases in INSTALL_RECEIPT
2016-09-09 07:47:05 +01:00
Mike McQuaid
0bb7fda143 commands: add commands module for path lookup. 2016-09-08 20:46:55 +01:00
Mike McQuaid
9514d1f8f5 commands: developer not development commands. 2016-09-08 20:46:55 +01:00
Mike McQuaid
af8605ea4b Move developer-focused commands to dev-cmd. 2016-09-08 20:46:37 +01:00
Mike McQuaid
4f6bae46f9 cmd/*: don't restrict dev-cmd to Homebrew developers. 2016-09-08 20:46:37 +01:00
Mike McQuaid
f37d004ab5 Merge pull request #864 from vladshablinsky/skip-upgrade
Skip upgrade of pinned dependency if it's outdated
2016-09-08 20:16:29 +01:00
Mike McQuaid
ebdb879fe4 Add --help to all developer commands.
Also, flag those that we never want to be in a manpage.
2016-09-08 09:05:00 +01:00
Alyssa Ross
4f1d47bc15 Test source.path on Tab.create and .for_formula 2016-09-07 22:52:29 +01:00
Alyssa Ross
f9e16ee2e0 Combine Tab alias_path with source.path 2016-09-07 22:48:52 +01:00
Alyssa Ross
8bbcbfc020 More realistic alias_path test 2016-09-07 21:47:53 +01:00
Vlad Shablinsky
846fa23156 test_integration_cmds: reinstall pinned 2016-09-07 20:58:14 +03:00
Vlad Shablinsky
f9b910eeb6 FormulaInstaller#check_install_sanity test pinned
Forbid to install formual if it has pinned dependencies.
2016-09-07 20:58:13 +03:00
Vlad Shablinsky
02a578d842 test_formula: eligible_kegs_for_cleanup_keg_pinned 2016-09-07 20:58:13 +03:00
Alyssa Ross
b90eba8ffd Update Tap for alias_path 2016-09-05 14:26:17 +01:00
Alyssa Ross
65ee5408c3 Replace install_name/install_ref with alias_path 2016-09-05 01:19:08 +01:00
Alyssa Ross
c17664b124 Switch to hash rockets 2016-09-05 01:19:08 +01:00
Mike McQuaid
dfcbefff73 Merge pull request #201 from gregory-nisbet/feature-env-shells
--env: support more shells, allow explicit shell selection
2016-09-04 21:23:33 +01:00
Alyssa Ross
0ef3e1e0dc Preserve alias when installing formulae
Part of #567
2016-09-03 21:16:43 +01:00
Mike McQuaid
0dc0bc1617 Merge pull request #773 from reitermarkus/report-cask-coverage
Also report Cask coverage.
2016-09-01 20:31:40 +01:00
Dominyk Tiller
4072628a80
test_utils: add Bottles::Bintray tests 2016-08-29 19:48:34 +01:00
Dominyk Tiller
24be5c4a39
test_formulary: add formula@version class translation check 2016-08-28 03:08:20 +01:00
Markus Reiter
c1621f7f54 Also report Cask coverage. 2016-08-27 10:17:20 +02:00
Dominyk Tiller
f37d7a5637
test_integration_cmds: use https://bot.brew.sh 2016-08-26 01:43:25 +01:00
Mike McQuaid
e7984b34d5 Improve HOMEBREW_BREW_FILE unset failure case.
Print a better exception message and handle this in more cases rather
than producing confusing errors when it’s unset.
2016-08-24 14:48:53 +01:00
Markus Reiter
39e9506557 Refactor shutup. 2016-08-21 05:07:38 +02:00
Mike McQuaid
9967bc99f0 Merge pull request #731 from MikeMcQuaid/rename-bottle-revision
Rename bottle's revision to rebuild.
2016-08-19 12:15:00 +01:00
Mike McQuaid
27ecf588c7 Rename bottle's revision to rebuild. 2016-08-18 17:32:35 +01:00
ilovezfs
a5a1b2969f version: fix parsing of URLs ending with version
https://github.com/lihaoyi/Ammonite/releases/download/0.7.4/0.7.4

was parsing as "0.7" not "0.7.4" since ".4" was being treated as a
legitimate file extension. At minimum, let's insist that a valid file
extension include at least one letter to avoid lopping off part of the
correct version string.
2016-08-18 06:51:02 -07:00
Mike McQuaid
b39eba6c5f Merge pull request #719 from vladshablinsky/epochs
Implement epochs
2016-08-18 12:24:54 +01:00
Vlad Shablinsky
6a684f4199 test_formula: add epoch tests 2016-08-18 10:38:20 +02:00
Mike McQuaid
3774b4641f test/Gemfile.lock: remove json pin. 2016-08-17 14:28:11 +01:00
Mike McQuaid
cf71e30180 Merge pull request #724 from MikeMcQuaid/assume-ruby-two
Assume Ruby 2
2016-08-17 11:07:17 +01:00
Mike McQuaid
495da233d7 test/Gemfile: assume Ruby 2. 2016-08-17 10:27:45 +01:00
Mike McQuaid
135ecd1295 Prepare for Homebrew Cask to be imported.
- ignore Cask's files in `readall` (for now, there's an intentional
  syntax error that will need fixed)
- run Cask's tests if they exist
- don't check Cask's files in coverage reports (for now)
2016-08-17 09:11:11 +01:00
Mike McQuaid
2ab5c77d0c Merge pull request #713 from MikeMcQuaid/ship-sandbox
Enable sandbox by default for homebrew/core
2016-08-17 08:30:16 +01:00
Andrea Kao
5a965d3006 tests: add cmd/audit unit tests (caveats, desc, homepage) 2016-08-15 15:28:06 -07:00
Mike McQuaid
6e887fbf5a sandbox: add formula? method and sandbox core.
Add a new `Sandbox.formula?` method to see if a given formula should be
sandboxed. Use the formula to check its tap against a list of
pre-approved taps where we know every formula builds under the sandbox
(currently just homebrew/core).
2016-08-15 08:33:58 +01:00
Mike McQuaid
fed96385ac sandbox: add test? method.
Simplify checking if we’re going to sandbox a test with `Sandbox.test?`.
2016-08-15 08:33:58 +01:00
Tim D. Smith
4309a19a7c Test that sandbox complains correctly
Test that sandbox does not complain about bogus .pyc errors and does
complain about other failures.

Closes #684.
2016-08-14 12:23:17 -07:00
Mike McQuaid
fcb0b33f16 Merge pull request #682 from eirinikos/extend-cmd-audit-tests
tests: refactor FormulaTextTests in test_cmd_audit, add assertion to test_simple_valid_formula
2016-08-14 09:44:54 +01:00
Dominyk Tiller
36b0666f25
test_gpg: tweak rmtree usage
Swats away this annoying warning when the test is skipped due to GPG being
unavailable:

```
  1) Skipped:
GpgTest#test_create_test_key:
GPG Unavailable

Error:
GpgTest#test_create_test_key:
NoMethodError: undefined method `rmtree' for nil:NilClass
    /usr/local/Library/Homebrew/test/test_gpg.rb:11:in `teardown'
```

Closes #675.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-08-13 03:33:34 +01:00
Dominyk Tiller
13dcdb3098
test_gpg2_requirement: add satisfied test 2016-08-13 03:33:33 +01:00
Dominyk Tiller
2c81083f3c
test_gpg: add initial tests 2016-08-12 23:46:42 +01:00
Andrea Kao
91b67bd41d tests: add assertion to test_simple_valid_formula 2016-08-12 15:21:27 -07:00
Andrea Kao
967a7a1862 tests: refactor FormulaTextTests in test_cmd_audit 2016-08-12 15:20:22 -07:00
Greg Nisbet
bf63c08d50 tests for shell-specific diagnostic message 2016-08-10 23:21:30 -07:00
Greg Nisbet
f1ce358551 Utils::Shell.shell_profile in formula_cellar_checks 2016-08-10 23:21:30 -07:00