201 Commits

Author SHA1 Message Date
Mike McQuaid
e3dcf7776a Revert "test-bot: remove dead code."
This reverts commit 373da8666e633b06d8a5bb98621461b700f4b2d7.
2015-12-11 08:08:51 +00:00
Mike McQuaid
4b3056e2fc test-bot: fetch/audit formulae despite requirement
It's still useful to do a basic test even if requirements cannot be
satisfied.
2015-12-10 10:43:45 +00:00
Mike McQuaid
d2a44869f0 test-bot: remove dead code. 2015-12-10 10:43:45 +00:00
Xu Cheng
2c25303949 remove unnecessary tap_args
It's now handled by Tap.fetch
2015-12-09 16:56:59 +08:00
Mike McQuaid
7b26c585c2 test-bot: use uses --recursive.
Sometimes the linkage means the recursive dependencies also link to
libraries and need bumped.
2015-12-07 19:34:42 +00:00
Mike McQuaid
d603c03aa3 test-bot: more Jenkins Mavericks 1.8.7 fixes. 2015-12-07 14:08:55 +00:00
Mike McQuaid
f7d3710d12 test-bot: fix cleanup check.
HOMEBREW_RUBY_PATH is always set.
2015-12-07 13:48:28 +00:00
Mike McQuaid
3d3c3e0131 test-bot: don't cleanup the HOMEBREW_RUBY_PATH. 2015-12-07 13:30:37 +00:00
Mike McQuaid
5388f8c8f8 Travis: don't run cleanup at all. 2015-11-19 13:30:07 +00:00
Mike McQuaid
1a8f6388a6 test-bot: don't cleanup before on Travis.
As we may be using a Ruby 1.8 that this will delete.
2015-11-19 13:18:21 +00:00
Mike McQuaid
c6621faf18 travis: test 10.9 using Ruby 1.8.
Closes Homebrew/homebrew#45816.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-18 17:06:28 +00:00
Mike McQuaid
11a421948d test-bot: remove email support. 2015-11-18 10:28:04 +00:00
Xu Cheng
7f167963b3 test-bot: skip optional deps when computing formulae test order
Closes Homebrew/homebrew#45611.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-07 02:26:33 +08:00
Xu Cheng
ec114bb480 test-bot: cleanup bottle files in cache
Closes Homebrew/homebrew#45637.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-04 14:58:00 +08:00
Xu Cheng
20d38701b5 test-bot: hard link generated bottle file to HOMEBREW_CACHE 2015-11-04 14:58:00 +08:00
Mike McQuaid
09516e1613 test-bot: fix testing builds building everything.
We don't care about the formulae that have changed since the last commit
so just ignore it.
2015-10-20 12:29:28 +01:00
Xu Cheng
8755e91675 test-bot: remove duplicated conflicts unlinking 2015-10-20 14:54:10 +08:00
Xu Cheng
e13866f74a test-bot: install bottle unneeded formulae in --fast mode 2015-10-20 14:53:50 +08:00
Xu Cheng
1a0f64d5f8 test-bot: don't use --build-bottle flag if bottle disabled 2015-10-19 21:50:12 +08:00
Xu Cheng
c4067cf8bb test-bot: skip bottling if it's unneeded 2015-10-19 21:41:36 +08:00
Xu Cheng
79018e4e24 test-bot: remove unused --tap args for brew bottle 2015-10-15 16:25:17 +08:00
Xu Cheng
d162aab9c6 test-bot: ensure cleanup is running
Closes Homebrew/homebrew#44982.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15 09:05:51 +01:00
Xu Cheng
c247a5b462 test-bot: merge formula's bottle before test
Fixes the bug described in
https://github.com/Homebrew/homebrew-science/pull/2866#issuecomment-148298146
2015-10-15 09:05:51 +01:00
Mike McQuaid
aeea953270 test-bot: readd missing --build-bottle. 2015-10-14 18:52:31 +01:00
Baptiste Fontaine
362da26ff6 test-bot: ensure install_passed is always defined 2015-10-14 17:40:14 +02:00
Mike McQuaid
667fa65be8 test-bot: make master builds faster.
Just do a few things rather than doing e.g. a full compile.

Closes Homebrew/homebrew#44936.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14 14:01:11 +01:00
Xu Cheng
d1222971f6 test-bot: update diff_start_sha1 unconditionally
See bfab4b0e65db4667ab09159b1040701fa75ec687

Closes Homebrew/homebrew#44889.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-14 00:04:57 +08:00
Xu Cheng
ee332c4550 handle TapFormulaWithOldnameAmbiguityError
Closes Homebrew/homebrew#44705.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:02:33 +08:00
Xu Cheng
3b520cf195 cache taps
There are plenty of IO operations inside Tap object, and it will be more
when implementing formula alias reverse look up(e.g. list all of alias
names for a formula). So let's cache them.

Some benchmark:

$ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null
Before: 6.40s user 2.42s system 96% cpu 9.134 total
After: 4.75s user 0.77s system 97% cpu 5.637 total

Closes Homebrew/homebrew#44377.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 16:25:30 +08:00
Xu Cheng
b37a285141 test-bot: fix start_revision for Travis
When a PR is merged during the test, the commit tree will be looked like
this:

master  PR
  \     /
    \ /
     |
    root

The start_revision will be poined to the commit used to merging PR,
instead of common root commit. As result, `git diff-tree start end`
will list file changes both in PR and master branch, which later
contributes to additional formulae are tested in some Travis builds.

To fix the problem, we use `git merge-base` to get common ancestor as
the real start_revision.

Closes Homebrew/homebrew#44379.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:46:59 +08:00
Mike McQuaid
74a2c3a509 test-bot: add comments, tweak argument handling. 2015-09-25 09:15:10 +01:00
Xu Cheng
afff98d700 travis: run --ci-master for non-PR
Closes Homebrew/homebrew#44302.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-24 20:35:26 +08:00
Mike McQuaid
711e079901 Export more Travis debugging and fix Git issue. 2015-09-24 08:33:08 +01:00
Xu Cheng
322a93bce0 test-bot: use IO#read instead of IO#gets
IO#gets will only return for every new lines, which will be bad for
`brew install` since we print dots in single line.

Closes Homebrew/homebrew#44264.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-23 21:46:45 +08:00
Xu Cheng
8c9f0120ca Formula#system: print dot for travis 2015-09-23 21:46:44 +08:00
Mike McQuaid
43f3ba9caa test-bot: configure log lines instead of verbose.
The `--verbose` seems to cause some issues with compiling software like
`boost` under Xcode 7.
2015-09-23 21:46:43 +08:00
Mike McQuaid
036aab567d test-bot: allow bottle --merge to fail.
It may still write some bottles so let's allow them to be uploaded.
2015-09-21 14:02:28 +01:00
Xu Cheng
76488216b7 test-bot: remove obsolete empty line 2015-09-21 17:28:58 +08:00
Mike McQuaid
e34033310a test-bot: optionally disable verbose install. 2015-09-19 08:19:49 +01:00
Xu Cheng
ccbb2ce786 test-bot: Formula#tap is not tap object 2015-09-18 22:19:53 +08:00
Xu Cheng
badea99097 test-bot: fix bottle uploading 2015-09-18 22:09:04 +08:00
Xu Cheng
9e2c0601e3 test-bot: fix bottle uploading 2015-09-18 22:08:07 +08:00
Xu Cheng
347a215361 test-bot: better fold id for travis
* Only use first two word in command to keep id short
* Append unique number in the id.

Closes Homebrew/homebrew#44104.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-18 22:04:24 +08:00
Xu Cheng
4114a75039 test-bot: add sanitize_ARGV_and_ENV
Closes Homebrew/homebrew#44102.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-18 21:54:02 +08:00
Xu Cheng
8228993624 test-bot: make ci-upload a standalone method 2015-09-18 21:54:02 +08:00
Xu Cheng
70d31838c6 test-bot: use tap object 2015-09-18 21:54:01 +08:00
Xu Cheng
658bdc2565 test-bot: make ci-reset-and-update a standalone method 2015-09-18 21:54:01 +08:00
Xu Cheng
a6c5fca3a9 test-bot: use ruby method instead of shellout to remove files 2015-09-18 21:54:01 +08:00
Xu Cheng
896ba576cc test-bot: tweak output for travis
Closes Homebrew/homebrew#44098.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-18 19:22:23 +08:00
Mike McQuaid
fab6b6c19d test-bot: fix syntax error. 2015-09-18 11:56:03 +01:00