10671 Commits

Author SHA1 Message Date
Mike McQuaid
2b8ea07979 update: don't recheck taps checked in the last 1m.
This is less than ideal but it gets the time on my machine down from ~6s
to ~2s when checking no taps. It still shows that we're doing way more
in `update.sh` than we need to be doing but that's a future PR.
2016-08-09 13:44:43 +01:00
Mike McQuaid
cc752e97f6 formula_installer: tweak dependent requirements.
If a requirement is for a dependent that's already installed and that
dependency is not using a `default_formula` (which would have already
been converted from a `Requirement` to `Dependency` at this stage) then
we want to stop it killing the build.
2016-08-09 09:59:05 +01:00
Dominyk Tiller
202e5f5332 formula_installer: prevent MaximumMacOSRequirement leakage
Read the discussion in https://github.com/Homebrew/homebrew-core/pull/3703. If you
have a better idea, please file a competing PR. I'm sick to death of discussion.

Closes #662.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-08-09 09:58:49 +01:00
Mike McQuaid
3f7adf214d test-bot: never auto-update. 2016-08-09 09:01:54 +01:00
Martin Afanasjew
cd23c263ba Fix style inconsistencies in Bash completion (#660) 2016-08-08 22:53:33 +02:00
Andrea Kao
8c0b72ac0d tests: extend cmd/install integration test
Closes #626.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-08 22:44:36 +02:00
Andrea Kao
c8b0a55c09 tests: refactor installation, renaming of CoreTap formula 2016-08-08 22:44:36 +02:00
Mike McQuaid
c7ba1c65ca gitignore: fix portable-ruby stashing. 2016-08-08 21:41:55 +01:00
Martin Afanasjew
c016aedaab tests: check all our Bash code for syntax errors
Additionally include our bootstrap code in `brew.sh`, Bash utilities in
`utils.sh` and `utils/*.sh`, `superenv` shims, and the Bash completion.

Closes #654.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-08 16:00:13 +02:00
Martin Afanasjew
b75516425b utils/analytics.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
2a943d0ad2 shims/sed: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
85c0b594ad shims/pod2man: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
8e180a85b8 shims/mig: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
10af1866af shims/make: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
672dc1bae2 shims/bsdmake: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
faf4bc819c shims/apr-1-config: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
4a7fc07430 shims/ant: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
3d862ef5e2 cmd/vendor-install.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
1e9328c6e1 cmd/update.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
79c49b3638 brew.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Mike McQuaid
850db4ebf4 search: fix repositories with formulae and casks.
e.g. Caskroom/homebrew-cask.

Thanks to UniqMartin for the fix.

Fixes #655.
2016-08-08 10:55:12 +01:00
Mike McQuaid
9d8c4e6279 tap: allow Homebrew developers to tap broken taps. 2016-08-08 10:55:02 +01:00
Mike McQuaid
3847db6026 formula_installer: better handle missing conflict.
Doesn't feel like a good reason to abort installation for users if the
formula author has specified a conflict that doesn't exist. Instead,
behave more like the `TapFormulaUnavailableError` but print a message
telling people to report to the formula authors.

Closes https://github.com/Homebrew/homebrew-versions/issues/1327
2016-08-08 10:54:48 +01:00
Mike McQuaid
c9fabf57a5 test_integration_cmds: non-OS X skip cask/services 2016-08-08 10:52:59 +01:00
Mike McQuaid
b7b89b9406 test/.rubocop.yml: fix check category. 2016-08-08 10:52:43 +01:00
Mike McQuaid
e011589635 Revert "test-bot: don't run cmd taps generic tests."
This reverts commit 24f7e671317dfe22f1d8e10426db2e9074674bc9.
2016-08-08 10:52:34 +01:00
Mike McQuaid
24f7e67131 test-bot: don't run cmd taps generic tests. 2016-08-08 10:06:46 +01:00
Andrea Kao
26fb38a739 tests: add cmd/test integration test 2016-08-08 08:50:30 +01:00
Steven Peters
a67c6f6ca2 bump-formula-pr: format documentation for --help. 2016-08-08 08:42:40 +01:00
Dominyk Tiller
92acdb5540
FAQ: fix-up cache path 2016-08-08 00:09:56 +01:00
Dominyk Tiller
e48a3a2642
audit: enforce include method placement
Closes #648.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-08-08 00:05:32 +01:00
Dominyk Tiller
11a1c495f7
audit: enforce conflicts_with placement 2016-08-08 00:05:19 +01:00
Uladzislau Shablinski
b8ce1fe1b2 Update upgrade/outdated documentation (#650) 2016-08-06 22:08:35 +08:00
Vlad Shablinsky
072e5df4ed
Cache outdated_versions for Formula
Closes #584.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-08-06 21:25:57 +08:00
Vlad Shablinsky
9754dbada8
Update upgrade/outdated methods for head versions
Introduce `--fetch-HEAD` option. Without this option upgrade and
outdated never fetch latest upstream commit to detect if HEAD is
outdated -- tabs are used instead. However, if option is passed,
we fetch commit from upstream, which is more time consuming,
but we can be sure that version is up-to-date or outdated.
2016-08-06 21:25:56 +08:00
Vlad Shablinsky
04cb161ddb
test_formula: add outdated_versions tests 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
001bef0604
formula: detect outdated HEAD in outdated_versions 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
a59bdc4a2a
formula: don't return outdated head in installed_prefix 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
1b88c2912b
formula: add new HEAD methods
* add `latest_head_version` to return latest HEAD version installed
* add `latest_head_prefix` to return Pathname with latest HEAD version
* add `head_version_outdated?` to check if HEAD version is up-to-date
2016-08-06 21:25:56 +08:00
Vlad Shablinsky
00f37d6778
Apply and add new download strategy tests 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
5ddee3502e
download_strategy: use short hash for mercurial 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
09d21ad258
download_strategy: allow to suppress output 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
1693ddbdcb
Introduce GitHubGitDownloadStrategy 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
1114219384
Add tests for Tab versions 2016-08-06 21:25:56 +08:00
Vlad Shablinsky
42bc623a27
tab: allow to store versions 2016-08-06 21:25:56 +08:00
Uladzislau Shablinski
63c563f970 Fix update commit for non-HEAD kegs with head spec (#644)
If we try to call `Formulary.from_keg(f, :head)` on the keg that
is not HEAD-keg itself, we don't need to update commit of
returned formula and should use just HEAD version with nil commit.

Same is true for `ARGV.resolved_formulae`
2016-08-06 16:22:12 +08:00
Andrea Kao
8ec59253df tests: fix code style issues (#587) 2016-08-06 07:04:59 +02:00
Martin Afanasjew
d59f0f77a7 tests: fix fluctuations in test coverage (#647)
This basically started once our integration tests caused the overall
test time to raise above 10 minutes, causing some coverage data to be
dropped because SimpleCov believed it to be stale.
2016-08-06 04:24:18 +02:00
Martin Afanasjew
65203bbd1e test-bot: avoid duplicate coverage reports
When running on Travis CI, both the Linux and macOS build will send a
coverage report, causing them to be merged by Coveralls. This results
in inferior coverage due to the early stage of the Linux-specific tests
and is probably not what we want. Make sure we only send a report for
macOS (assuming we stick with a single macOS build in `.travis.yml`).
2016-08-06 01:52:28 +02:00
Mike McQuaid
66d564d885 update-report: tweak Cask migration output.
No longer output every cask under the list of changed formulae but
instead create a dedicated, unprinted report section for casks and then
iterate through that instead.
2016-08-05 16:34:56 +01:00