122 Commits

Author SHA1 Message Date
Andy Blyler
653053f184 test-bot: handle conflicted formulas and unlinked dependencies
these changes are primarily needed for php tap pull requests, as they usally contain multiple formulas depend on conflicting php versions:
- unlink any conflicted formulas
- link any dependencies that are installed and not linked

Closes Homebrew/homebrew#41602.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-20 08:34:53 +01:00
Mike McQuaid
3ac6005931 audit: add --online flag.
Also add it to the manpage and brew-test-bot.

Closes Homebrew/homebrew#41516.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-09 14:50:55 +01:00
Xu Cheng
4443a87524 stop setting root_url for offical taps' bottles 2015-07-06 18:04:59 +08:00
Mike McQuaid
9c7b3b02ce test-bot: always do a git clean -ffdx
This ensures that all nested Git repositories (e.g. taps) are also
deleted. Previously this wasn't needed as we could just rely on the
symlinks in `Library/Formula` being missing but since Xu's good work
this inadvertedly made the bot's `brew uses foo` start showing things
from taps we hadn't previously deleted.
2015-06-13 18:35:19 +01:00
Xu Cheng
c6e1090c43 requirement: allow access default_formula directly 2015-06-07 20:32:45 +08:00
Xu Cheng
517ced731c test-bot: use bottle_resolve_formula_names
Closes Homebrew/homebrew#40134.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-02 16:45:44 +08:00
Xu Cheng
296ca61510 test-bot: simplify the upload logic
If the bottle is already published, let's fail directly.
Also silent the curl output.

Closes Homebrew/homebrew#40295.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-02 15:41:12 +08:00
Xu Cheng
6d93eee8bb test-bot: allow overwrite unpublished bottles
Closes Homebrew/homebrew#40260.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-01 18:14:28 +08:00
Mike McQuaid
66aae02527 test-bot: tweak bottle uploading. 2015-05-30 11:40:48 +01:00
Xu Cheng
d8f9bfa730 test-bot: remove obsolete tap --repair 2015-05-30 16:04:03 +08:00
Xu Cheng
85924eaf9f test-bot: use Formula#full_name 2015-05-29 17:02:23 +08:00
Jack Nagel
aac0e4a878 Fix variable reference 2015-05-27 23:32:06 -04:00
Mike McQuaid
ef08db539b test-bot: always brew install as a non-developer.
Bored of dealing with the bottle conflicts errors here so I don't think
it's really worth working around.

Closes Homebrew/homebrew#40097.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-27 10:00:47 +01:00
Xu Cheng
bc41f947de test-bot: rescue TapFormulaAmbiguityError 2015-05-27 13:53:42 +08:00
Xu Cheng
471c5502f5 test-bot: don't complain bottle errors when installing gcc and hg
Closes Homebrew/homebrew#39626.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-18 19:48:06 +08:00
Xu Cheng
ae41a51976 test-bot: unlink conflicted formulae 2015-05-18 19:48:06 +08:00
Mike McQuaid
7d88c110f6 test-bot: rerun brew update if it fails. 2015-05-14 09:40:53 +01:00
Mike McQuaid
d05d185d2e test-bot: cleanup more locks. 2015-05-14 08:45:39 +01:00
Jack Nagel
fe588311cc Use predicate method 2015-05-01 00:00:55 -04:00
Jack Nagel
c7ca28a161 Fix encoding of output string 2015-04-30 19:42:54 -04:00
Jack Nagel
e023d869a2 Revert "test-bot: try to handle bad UTF-8 output."
This reverts commit b4c2b8f3b4b58ef10ab8f748c743a3352f4cee7d.
2015-04-30 19:41:58 -04:00
Mike McQuaid
ee0a553021 test-bot: try to handle bad UTF-8 output. 2015-04-29 12:57:13 +01:00
Xu Cheng
9ed00fc7fa test-bot: print output if ARGV.verbose?
Closes Homebrew/homebrew#39078.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-27 23:59:59 +08:00
Xu Cheng
b3a38ea871 brew-test-bot: use pkg_version when uploading bottles 2015-04-26 17:19:03 +08:00
Mike McQuaid
ced7598d67 test-bot: delete cache files older than 30 days.
Closes Homebrew/homebrew#38567.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-16 17:52:11 -07:00
Tim D. Smith
407b82406f test-bot: don't check deps until taps are tapped
brew deps will fail silently if a formula has dependencies which live in
taps that have not yet been tapped. Delay checking brew deps until after
tap dependencies are discovered.

Closes Homebrew/homebrew#38424.
2015-04-09 00:42:51 -07:00
Mike McQuaid
cfc8ac0190 test-bot: override existing Bintray bottles. 2015-04-07 08:31:17 +01:00
Mike McQuaid
959d92a84a test-bot: first git clean should not be a test.
We don't care if it fails as we'll immediately run a stronger version
afterwards (and we care if that fails).
2015-03-24 09:13:42 +00:00
Mike McQuaid
a4f474ddb9 test-bot: uninstall build deps before bottle test.
This should hopefully more often catch the situation where things are
marked as build dependencies incorrectly.

Closes Homebrew/homebrew#37927.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-23 13:30:55 +00:00
Mike McQuaid
e7053ac35a test-bot: allow skipping homebrew step. 2015-03-23 13:30:55 +00:00
Mike McQuaid
a46ab0d641 test-bot: tweak documentation indentation. 2015-03-23 13:30:55 +00:00
Mike McQuaid
862c0ddf4a test-bot: remove --debug flag.
Too spammy in the output. May consider readding later to specific
commands.
2015-03-20 20:22:54 +00:00
Mike McQuaid
2d1c8b4de4 test-bot: don't run readall on <=10.8.
The Ruby 1.8 implementation seems to be really flaky, unfortunately.
2015-03-20 16:59:21 +00:00
Mike McQuaid
514910e812 test-bot: remove more bad unicode characters. 2015-03-16 18:39:45 +00:00
Mike McQuaid
fffba3dc7d test-bot: remove another invalid XML character. 2015-03-16 10:29:56 +00:00
Mike McQuaid
68a8d1a5e7 test-bot: check syntax with readall.
Closes Homebrew/homebrew#37471.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-08 11:13:34 +00:00
Mike McQuaid
5206a2523e test-bot: rename variable to avoid shadowing.
Closes Homebrew/homebrew#37487.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-08 09:39:16 +00:00
Mike McQuaid
fb99393422 test-bot: fix ambiguous arguments. 2015-03-08 09:39:15 +00:00
Mike McQuaid
36b7bae93c test-bot: remove unused variables. 2015-03-08 09:39:15 +00:00
Xu Cheng
144453368e test-bot pathname: use Utils.popen_read instead of backticks
Closes Homebrew/homebrew#37418.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-06 22:19:24 +08:00
Mike McQuaid
f27f427d95 test-bot: use canonical names for taps. 2015-02-27 17:00:34 +00:00
Mike McQuaid
307ea17ba3 test-bot: cleanup old PR locks.
This is a problem on older versions of Git (such as on the Mountain Lion bot).
2015-02-27 13:53:29 +00:00
Mike McQuaid
17bfb0f804 Remove SourceForge references.
It was fun but we just love Bintray more than you.

Closes Homebrew/homebrew#37211.

Closes Homebrew/homebrew#37213.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-26 11:32:42 +00:00
Mike McQuaid
64d9c16942 test-bot: pass tap argument to bottle --write. 2015-02-23 21:29:51 +00:00
Mike McQuaid
1f541f7dfb test-bot: upload packages from canonical name. 2015-02-23 17:15:20 +00:00
Mike McQuaid
bfee201a18 test-bot: don't blow up if formula can't be found. 2015-02-23 15:12:09 +00:00
Mike McQuaid
a0e2232b43 test-bot: set debug flag for CI. 2015-02-23 15:10:00 +00:00
Mike McQuaid
15bebd6e7e test-bot: default tap bottles to Bintray. 2015-02-19 19:36:14 +00:00
Mike McQuaid
fb9942a264 test-bot: enable tap Bintray upload again. 2015-02-19 15:35:34 +00:00
Mike McQuaid
e5f145abab test-bot: use Bintray package naming. 2015-02-19 12:58:56 +00:00