58 Commits

Author SHA1 Message Date
Mike McQuaid
fcb05efcd5 test-bot: more Bintray fixes. 2015-02-17 19:35:15 +00:00
Mike McQuaid
67828cd015 test-bot: specify bintray username/password. 2015-02-17 19:18:14 +00:00
Mike McQuaid
38f9a78c29 Add initial Bintray upload support. 2015-02-17 18:57:59 +00:00
Xu Cheng
86cd5d2f24 test-bot: fail fast in check_results
Closes Homebrew/homebrew#36893.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-17 10:30:42 +00:00
Xu Cheng
105eaf3382 test-bot: only test the runtime dependencies.
Also add support to `brew uses` to ignore build or optional dependencies.

Closes Homebrew/homebrew#36154.
Closes Homebrew/homebrew#36656.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-09 14:12:19 +00:00
Mike McQuaid
e8d8c3a486 test-bot: don't try and bottle unstable formulae.
e.g. devel-only or head-only formulae.
2015-02-04 14:20:21 +00:00
Mike McQuaid
f2a9b9cbd2 test-bot: optional requirements are satisfied. 2015-02-03 16:46:36 +00:00
Dominyk Tiller
5ac0446fd7 test-bot: support --devel and/or --HEAD install
See discussion in https://github.com/Homebrew/homebrew-devel-only/pull/8

In essence, the test bot currently does this:

```
==> brew install --verbose --build-bottle j2objc			 FAILED
Error: j2objc is a devel-only formula
Install with `brew install --devel j2objc`
```

I’m proposing that we pass that arg to the test-bot automatically to
allow the bot to pass head-only and devel-only formulae without that
failure message. I’ve also trimmed the arguments further down to
prevent it duplicating the —devel install in formulae which define no
stable block.

Closes Homebrew/homebrew#36030.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-27 12:40:36 +00:00
Jack Nagel
af1e9a9610 Expose bottle details on the formula object
Fixes Homebrew/homebrew#36032.
2015-01-20 22:27:23 -05:00
Mike McQuaid
6a6b56127c test-bot: handle devel-only formulae. 2015-01-17 19:12:10 +01:00
Xu Cheng
1818799634 test-bot: unlink conflict formulae during the test
Closes Homebrew/homebrew#35697.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-09 15:37:29 +00:00
Mike McQuaid
26b80ecccc test-bot: improve output of dependent testing. 2015-01-09 11:35:03 +00:00
Mike McQuaid
424ded8fdb test-bot: ignore changed dependents. 2015-01-09 11:35:03 +00:00
Shaun Jackman
c01e6b81d3 test-bot: do not --cleanup outside CI.
Closes Homebrew/homebrew#35424.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-02 09:50:28 +00:00
Mike McQuaid
4d584d37f7 test-bot: don't try to retap TapDependency taps. 2014-12-29 12:28:43 +00:00
Mike McQuaid
95ccf53a49 test-bot: tap TapDependency's tap. 2014-12-29 12:20:30 +00:00
Mike McQuaid
eb51f8a5fa test-bot: init added/modified formulae arrays. 2014-12-29 07:55:01 +00:00
Mike McQuaid
bff259330c test-bot: clean up harder on failure (before). 2014-12-29 07:51:50 +00:00
Mike McQuaid
8c19b2a13e test-bot: clean harder if first clean fails. 2014-12-28 18:17:12 +00:00
Mike McQuaid
af4a156885 test-bot: tweak readability. 2014-12-28 18:17:02 +00:00
Mike McQuaid
b5439b6f7a test-bot: check if dependents are installed.
Before fetching or installing with no args.
2014-12-28 18:16:49 +00:00
Mike McQuaid
b3a15ad6ef test-bot: use audit --strict on added formulae. 2014-12-27 13:03:40 +00:00
Mike McQuaid
f9917768a9 test-bot: fix use of select!. 2014-12-23 20:19:45 +00:00
Mike McQuaid
f475f750f9 test-bot: test bottled dependents.
Test everything that `brew uses` a formula, has a bottle and a test.

This should allow some quick gains in terms of spotting formulae that may need
revisioned to avoid problems with shifting dependencies. As the test-bot lives
in a data centre with (very) fast internet the fetch and extraction time
shouldn't slow things down much.

Closes Homebrew/homebrew#35092.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-23 19:14:30 +00:00
Jack Nagel
c06fe57b04 Use FileUtils instead of shelling out to cp 2014-12-07 14:38:42 -05:00
Jack Nagel
f0e01a0578 Use add_attribute method instead of accessing attributes hash 2014-12-02 21:14:53 -05:00
Jack Nagel
b9474dfc42 Simplify appending CDATA 2014-12-02 21:14:53 -05:00
Jack Nagel
a463caae36 Combine conditionals 2014-12-02 21:14:52 -05:00
Mike McQuaid
13b770246a test-bot: more support for bottling taps. 2014-11-24 08:26:43 +00:00
Mike McQuaid
62815f4b3d test-bot: more tap upload improvements. 2014-11-23 16:59:54 +00:00
Mike McQuaid
c925c22158 test-bot: tap before attempting upload. 2014-11-23 16:50:19 +00:00
Mike McQuaid
342b09b855 test-bot: fix indentation. 2014-11-23 14:41:48 +00:00
Mike McQuaid
ed30b04911 test-bot: fix tap-from-url regex usage. 2014-11-23 14:38:40 +00:00
Mike McQuaid
00f0644106 test-bot: improve tap building.
- allow using (UPSTREAM_)GIT_URL to find the tap name
- push bottles to a remote based on the tap name
2014-11-23 14:11:46 +00:00
Mike McQuaid
395d798bc2 brew-test-bot: check default_formula requirements.
This handles the case where e.g. a default_formula cannot be installed
on Yosemite which causes the build to fail.
2014-11-18 16:43:13 +00:00
Jack Nagel
24f1a6e9fc Run test-bot logs through iconv on Ruby 1.8 2014-11-18 01:22:42 -06:00
Jack Nagel
a9e34b0ee2 UTF-8 to UTF-16 should never raise UndefinedConversionError 2014-11-18 01:22:25 -06:00
Jack Nagel
7f230dfaf8 Suppress encoding errors in test-bot log files 2014-11-18 00:41:52 -06:00
Jack Nagel
ab0368cb34 test-bot: make variable names consistent with other code 2014-11-10 20:49:47 -06:00
Jack Nagel
001c9baa7f Don't record the test if initialization fails
When Test.new raises an ArgumentError, nil will be pushed onto the tests
array, and then methods will be called on nil when we iterate over the
tests while building the XML output.
2014-11-10 19:28:17 -06:00
Jack Nagel
bf53f3fd16 Less code in begin block 2014-11-10 19:27:31 -06:00
Mike McQuaid
1eb74cb419 test-bot: handle changed bottled dependencies. 2014-11-07 21:48:55 +00:00
Mike McQuaid
27c1a67ed6 brew-test-bot: add fail-fast option.
Allows easier testing of failures due to bad state.
2014-10-27 13:02:30 +00:00
Mike McQuaid
cd528e7203 brew-test-bot: tweak pull request diff detection.
Avoid accidentally including more changes than was intentional.
2014-10-26 12:34:09 +00:00
Mike McQuaid
a094dbe2bb brew-test-bot: just use ci-upload flag.
Can combine testing and PR upload jobs into a single one.
2014-10-24 14:27:04 +01:00
Mike McQuaid
3e8c6c8e67 brew-test-bot: start generalization of uploaders. 2014-10-24 13:57:00 +01:00
Mike McQuaid
d56a2751a1 brew-test-bot: always base URL tests on master. 2014-10-22 09:32:19 +01:00
Mike McQuaid
5c88e8d654 brew-test-bot: be more resilient to bad arguments. 2014-10-21 15:34:20 +01:00
Mike McQuaid
0cc259613b brew-test-bot: keep running after a single error. 2014-10-21 12:12:24 +01:00
Mike McQuaid
b91b23f8d0 brew-test-bot: set HOME.
Stop dumping files in the real HOME and allow Jenkins to handle
workspace cleanup instead.
2014-10-19 13:33:41 +01:00