Markus Reiter
58e36c7319
Fix Style/GuardClause.
2016-09-24 12:24:35 +02:00
Mike McQuaid
7c27fda11d
test-bot: always check style of formula.
2016-09-23 20:30:07 +01:00
Mike McQuaid
8724e11a6b
Merge pull request #1100 from MikeMcQuaid/test-bot-etc-var
...
test-bot: cleanup etc/var after each build.
2016-09-23 18:57:03 +01:00
Markus Reiter
fe2d51e0b9
Fix Style/IfUnlessModifier.
2016-09-23 15:30:07 +02:00
Markus Reiter
9ce3c8d8a4
Fix Style/NumericLiterals.
2016-09-23 15:30:06 +02:00
Markus Reiter
23dacc7525
Fix Style/Next.
2016-09-23 15:30:06 +02:00
Mike McQuaid
28a3cec21a
test-bot: cleanup Cellar/etc/var after each build.
...
This has been causing issues when bottling files that are installed to
these paths due to the diff algorithm we use for figuring out whether
files installed into etc/var belong to a given bottle. Additionally,
sometimes not all formulae were uninstalled which meant `brew doctor`
would fail.
2016-09-23 14:24:41 +01:00
Mike McQuaid
f6fef7cdce
test-bot: always update to tag for taps.
2016-09-20 19:37:30 +01:00
Mike McQuaid
622e858b6e
test-bot: always set PATH to HOMEBREW_PREFIX.
...
Set the `PATH` to always have the `bin` and `sbin` for the current
`HOMEBREW_PREFIX` at the beginning.
2016-09-20 08:42:30 +01:00
Mike McQuaid
7a9934ffa3
test-bot: brew prune after removing formulae.
2016-09-19 11:24:36 +01:00
Mike McQuaid
8a4f26f952
test-bot: run brew style
.
2016-09-19 11:18:10 +01:00
Mike McQuaid
3551977fb3
test-bot: uninstall all formula on cleanup.
...
Need to do this manually now that we can't rely on `git clean -xdf` to
do it for us.
2016-09-18 19:30:00 +01:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
b1903c1a4a
test-bot: generate coverage reports on Sierra.
...
We may have two Sierra nodes available which could speed up this
relatively slow operation.
2016-09-17 12:55:46 +01:00
Mike McQuaid
1649545cf9
update-test: handle missing master branch.
...
Ensure it's always created.
Also, re-order `update-test` in `test-bot` (and `readall`) so they are
run before the test suites.
2016-09-16 17:17:50 +01:00
Mike McQuaid
b1fba6ed54
Send coverage from Jenkins, don't run OS X Travis.
...
OS X Travis CI is particularly error-prone, slow and unnecessary for
us when we're already running (fast) OS X builds on Jenkins so use it
just for Linux testing.
2016-09-16 10:20:09 +01:00
Mike McQuaid
054b1a8f73
test-bot: fix test default formula handling.
...
Move the test default formula handling to after all the other formulae
additions are so it'll only be added if no formulae are detected
already in a PR.
2016-09-13 13:25:33 +01:00
Mike McQuaid
0f03506adc
test-bot: don't run Homebrew tests for taps PRs.
...
Check the repository directly rather than @test_default_formula.
2016-09-13 10:36:20 +01:00
Mike McQuaid
0316830d4f
test-bot: also build testing bottle.
2016-09-13 08:58:12 +01:00
Mike McQuaid
c3a8701dc4
test-bot: default to building testbottest.
...
This provides an integration test for `test-bot.rb` by performing
compilation of an actual formula.
2016-09-13 08:18:43 +01:00
Zhiming Wang
5a264cf597
Merge pull request #947 from zmwangx/fix-test-bot-desc
...
test-bot: fix summary
2016-09-12 10:22:27 -04:00
Zhiming Wang
8ce4ca1de3
test-bot: fix summary
2016-09-12 09:09:23 -04:00
Mike McQuaid
793a75f3f3
test-bot: fix bottling non-testing jobs.
...
Need to handle when the `BOT_PARAMS` are `nil`.
2016-09-12 13:51:32 +01:00
Mike McQuaid
5da42b5a5f
test-bot: fix multiline regex.
2016-09-12 10:28:52 +01:00
Mike McQuaid
e4ef1f062e
test-bot: fix regex placement.
2016-09-12 08:52:19 +01:00
Mike McQuaid
53c3123b53
Merge pull request #929 from MikeMcQuaid/test-bot-jenkinsfile
...
test-bot: handle more Jenkins configurations.
2016-09-12 08:09:39 +01:00
Mike McQuaid
df1f9806a4
test-bot: handle more Jenkins configurations.
...
Used in trying to use a `Jenkinsfile`.
2016-09-11 21:43:37 +01:00
Mike McQuaid
51bda9c90e
dev-cmd/test-bot: fix Rubocop warnings.
2016-09-11 19:14:55 +01:00
Mike McQuaid
f583199f6e
test-bot: don't try to git clean
any taps.
...
Also, unify the cleanup code and be more careful and consistent with
untapping.
2016-09-11 14:14:31 +01:00
Mike McQuaid
3d73515028
test-bot: try again to fix homebrew/core untap.
...
Be more selective with the `git clean` and remove the broken attempt
to autotap if missing (as it'd be slow anyway).
2016-09-11 12:31:44 +01:00
Mike McQuaid
2ec5423356
test-bot: --ci-upload can upload from current dir.
...
Look in the current directory rather than only allowing upload from
Jenkins.
2016-09-11 11:28:15 +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
Mike McQuaid
665c56538e
test-bot: separate tap/core no formula handling.
...
`e.tap` calls the tap method which wants a block on
`FormulaUnavailableError` so the previous approach is 👎 .
2016-09-07 12:47:23 +01:00
Mike McQuaid
f9fe5b6798
test-bot: handle missing tap in exception.
...
Handle the case where a `FormulaUnavailableError` does not contain a tap
reference so fall back to `CoreTap` in this case.
2016-09-07 11:40:28 +01:00
Mike McQuaid
159ba9b012
test-bot: put exception, retry on missing formula.
...
This will be useful in debugging (and recovering from) the situation
where sometimes formulae can't be found when specifying multiple on the
command-line.
2016-09-07 08:42:00 +01:00
Mike McQuaid
b21d724618
test-bot: tweak cleaning behaviour again.
...
Always run `git clean -ffdx` on HOMEBREW_REPOSITORY. Also, ensure that
if we can't find a formula that's logged.
2016-09-06 12:00:08 +01:00
Mike McQuaid
c676189455
test-bot: git clean less in cleanup_*.
...
There's edge-cases which is breaking tap CI.
2016-09-06 08:44:11 +01:00
Mike McQuaid
0a098ae55d
test-bot: never cleanup homebrew/core.
...
Otherwise weird things happen and formulae can't be found.
2016-09-05 20:17:49 +01:00
Mike McQuaid
3acaecca8b
test-bot: use UPSTREAM_BOTTLE_KEEP_OLD.
...
This is set by Jenkins to indicate a downstream bottle upload job needs
to use `brew bottle --keep-old`.
2016-09-04 20:07:37 +01:00
Mike McQuaid
81747364e7
Merge pull request #869 from MikeMcQuaid/test-bot-cleanup-all-taps
...
test-bot: cleanup all repositories.
2016-09-04 18:59:16 +01:00
Mike McQuaid
14236c3950
test-bot: cleanup all repositories.
...
The test bot currently only focuses on doing cleanup on the current tap
and the HOMEBREW_REPOSITORY. This should be extended to cover all
repositories as e.g. a syntax error in homebrew/core can break the CI
for all the other taps.
2016-09-04 11:26:38 +01:00
Mike McQuaid
d8a2a90dac
test-bot: add missing @tap check.
2016-09-04 11:04:36 +01:00
Mike McQuaid
1feda75081
test-bot: don't run brew tests etc. when formulae.
...
If there's formulae changes or the specified argument is a formula then
don't waste time running e.g. `brew tests`.
2016-09-03 20:24:47 +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
Steven Peters
bcdd20a165
test-bot: use --full-name in brew deps invocation
...
This allows changed formulae in taps to be tested in the proper order.
See #738 for more details.
2016-08-28 00:30:38 -07:00
Markus Reiter
c1621f7f54
Also report Cask coverage.
2016-08-27 10:17:20 +02:00
Markus Reiter
a11f536280
Remove exist?
check for brew-cask-tests.rb
.
2016-08-26 11:46:32 +02:00
William Woodruff
f0efaac5aa
Enable ruby-macho by default.
...
Flips HOMEBREW_RUBY_MACHO to HOMEBREW_NO_RUBY_MACHO.
2016-08-20 10:31:34 -04:00
Mike McQuaid
27ecf588c7
Rename bottle's revision to rebuild.
2016-08-18 17:32:35 +01:00
Xu Cheng
e423617d77
remove ruby 1.8 compatible codes
2016-08-18 14:35:39 +08:00