Commit Graph
101 Commits
Author SHA1 Message Date
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 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
Martin AfanasjewandGitHub bb4d168c48 Merge pull request #760 from jasonkarns/bump-formula-pr-return-to-branch
bump-formula-pr: return to starting branch
2016-08-20 11:36:43 +02:00
Jason Karns f40fd1df90 bump-formula-pr: return to starting branch
After branching, bumping, pushing, and pr-ing; return to whatever branch
was originally checked out.

In most cases, I'd imagine users to want to continue receiving tap
updates from master. However, after using bump-formula-pr, the tap in
which the formula was bumped is left on the working branch that was
doing the bumping and pull-request. After opening the PR, we should
return to whatever branch the user originally had checked out – most
likely master. (But git allows us to just say "previous branch" by using
`-`)
2016-08-19 15:59:55 -04:00
Jason Karns 07efe1e771 bump-formula-pr now creates non-tracking branches
Without `--no-track`, some git setups may automatically set
`origin/master` as the tracked upstream for the newly created branch.
This upstream is what hub defaults as --head when opening PRs. By not
allowing git to set `origin/master` as upstream, hub can then use the
proper --head for the PR.

Since hub still needs to know what --head is intended to be, we can set
the branch's upstream when pushing: with the --set-upstream option.

Fixes #755
2016-08-19 10:50:51 -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
Mike McQuaid 8490985953 test-bot: tap cask before cask-tests. 2016-08-17 14:47:41 +01:00
Mike McQuaidandGitHub cf71e30180 Merge pull request #724 from MikeMcQuaid/assume-ruby-two
Assume Ruby 2
2016-08-17 11:07:17 +01:00
Mike McQuaid 3ae663c013 test-bot: assume Ruby 2. 2016-08-17 09:19:56 +01:00
Mike McQuaid 135ecd1295 Prepare for Homebrew Cask to be imported.
- ignore Cask's files in `readall` (for now, there's an intentional
  syntax error that will need fixed)
- run Cask's tests if they exist
- don't check Cask's files in coverage reports (for now)
2016-08-17 09:11:11 +01:00
Martin Afanasjew 823505a058 Fix minor issues in command help text formatting
- Inconsistent or unneeded indentation
- Missing or superfluous empty lines
- Missing or wrongly formatted arguments in command summary
- Missing punctuation
2016-08-17 01:25:51 +02:00
Mike McQuaid 65164cb386 update-test: tweak master not updated check.
Loosen this a bit; we don't necessarily expect the end commit is the one
we're looking for, just that it has changed from the start commit (i.e.
some sort of update has occurred).

Addresses some false negatives on `master` branch merges that weren't
present on the PR commits.
2016-08-14 11:52:22 +01:00
Mike McQuaid b9d5b11f32 update-test: check we end up at end commit.
This would have caught the bug fixed in 985c67.
2016-08-11 11:26:37 +01:00
Mike McQuaid 1a240cd52a Tweak HOMEBREW_NO_AUTO_UPDATE handling.
This can just live in `brew.sh` and then it doesn’t need repeated in
all the other places.
2016-08-10 15:37:04 +01:00
Mike McQuaid 3f7adf214d test-bot: never auto-update. 2016-08-09 09:01:54 +01:00
Mike McQuaid e011589635 Revert "test-bot: don't run cmd taps generic tests."
This reverts commit 24f7e67131.
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
Steven PetersandMike McQuaid a67c6f6ca2 bump-formula-pr: format documentation for --help. 2016-08-08 08:42:40 +01: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
Xu ChengandGitHub a8566c9848 various: eliminate the usage of any? (#638)
`any?` is not the opposite of `empty?`. Besides the case that
`[false, nil].any?` will return false, `any?`(O(n)) has much worse
performance than `empty?`(O(1)).
2016-08-05 22:01:32 +08:00
Mike McQuaid 0302a6bc7c audit: add --new-formula option.
Rather than nudge people to run `--strict` and then ignore some of the
results sometimes (e.g. GitHub repository notability) instead add a
dedicated `--new-formula` option that implies this is a one-time
advisory check.
2016-08-02 12:44:41 +01:00
Mike McQuaid bc5b9c1e97 test-bot: fix non-OS X report generation. 2016-07-29 21:58:17 -06:00
Mike McQuaid 164e46a729 Add missing development_tools requires. 2016-07-29 21:21:02 -06:00
Mike McQuaid 696f497e32 test-bot: skip update-test on non-Mac. 2016-07-29 21:21:02 -06:00
Mike McQuaid 932e145d9c test-bot: run all tests in generic mode. 2016-07-27 15:05:42 -06:00
Mike McQuaid 4174bf147c test-bot: don't checkout/reset on --no-pull 2016-07-26 21:00:16 -06:00
Martin Afanasjew 5768e32ad2 test-bot: fix coverage on Travis CI
Make sure to call `brew tests` only once with `--coverage` to avoid
expensive multiple runs and to prevent later runs from overwriting
previously sent results to Coveralls. (The previous setup overwrote the
results from a regular run with results from the `--generic` run.)

The `--no-compat` variant without any other options specified seemed to
be the most appropriate for a coverage report.

Closes #546.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-19 02:04:41 +02:00
Mike McQuaidandGitHub 90e84453f9 test-bot: re-add update-test. (#521) 2016-07-16 07:05:51 +01:00
Mike McQuaid 2b078be186 test-bot: remove Jenkins Git debugging. 2016-07-15 13:21:13 +01:00
Mike McQuaid 3260397632 test-bot: more reset/cleanup tweaks. 2016-07-15 13:19:44 +01:00
Mike McQuaid d34b93fa1c test-bot: print out git commands on Jenkins. 2016-07-15 13:14:52 +01:00
Mike McQuaid ec1da60941 test-bot: don't cleanup brew repo twice. 2016-07-15 13:10:39 +01:00
Mike McQuaidandGitHub f6dad377b6 test-bot: start running generic tests. (#505)
* test-bot: start running generic tests.

Start running the test suite in the "generic" mode i.e. a base layer for
non-OS X platforms to be able to use to ensure we don't break the generic code
for the parts of the code we've got running.

Currently this just runs the integration tests as that's the only useful suite
that's entirely passing but eventually this will be changed to run the full test
suite in generic mode.

* test_integration_cmds: fix tests on Linux.
2016-07-14 14:37:50 +01:00
Mike McQuaid 9aa4362eb4 test-bot: fix --no-pull flag. 2016-07-14 10:57:12 +01:00
Mike McQuaid 84c12f9eb1 test-bot: add --no-pull flag. 2016-07-14 10:55:23 +01:00
Mike McQuaid 849ec0f411 test-bot: don't pull if unnecessary (take two). 2016-07-14 10:53:35 +01:00
Mike McQuaid 0e90549104 test-bot: don't pull if unnecessary. 2016-07-14 10:51:22 +01:00
Mike McQuaid 355fae78b1 test-bot: fix typo. 2016-07-14 10:43:58 +01:00
Mike McQuaid 4f02fb8ce7 test-bot: don't run doctor when outside /usr/local. 2016-07-14 10:43:09 +01:00
Mike McQuaid f1f775b9aa test-bot: remove .git from Jenkins GIT_URLs. 2016-07-14 10:18:39 +01:00
Mike McQuaid 2a61c84be3 test-bot: handle inconsistent Jenkins GIT_URLs. 2016-07-14 10:16:35 +01:00
Mike McQuaid b3ed00b791 test-bot: use another method to find Jenkins PR. 2016-07-14 10:10:34 +01:00
Xu Cheng 13730a9dad move LinkageChecker to standalone file 2016-07-14 15:23:33 +08:00
Xu Cheng de1049f1f1 various: proper escape dot in regex 2016-07-13 19:11:46 +08:00
Mike McQuaidandGitHub 23306ab434 github: produce better curl error messages. (#441)
* global: add RUBY_TWO global variable.

* test-bot: use RUBY_TWO global variable.

* github: produce better curl error messages.

If we don't know why curl has failed then ensure that the error messages
that it produced are included as part of the user output.
2016-07-12 19:46:29 +01:00
ilovezfs 454645263d Revert "linkage: check undeclared dependencies for --test"
This reverts commit 080ddd8804.
2016-07-07 13:00:40 -07:00
ilovezfs b35da247af Revert "linkage: update --test documentation"
This reverts commit 310d7067e0.
2016-07-07 12:59:45 -07:00
Andrew Janke 61ffa47fd9 test-bot: fix ruby_has_encoding call regression 2016-07-05 10:50:35 -04:00