8654 Commits

Author SHA1 Message Date
Xu Cheng
30795ddc29 doctor: temporary add -R flag in chown instruction
Will replace it when we implemented `brew repair-permission`
2015-09-30 13:55:32 +08:00
Xu Cheng
e66cb91702 update: add permissions check
Closes Homebrew/homebrew#42048

Closes Homebrew/homebrew#44434.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 13:54:04 +08:00
Xu Cheng
ff132a9ddb doctor: add check_access_homebrew_repository 2015-09-30 13:54:04 +08:00
Xu Cheng
3c54d12cec doctor: official supporting El Capitan 2015-09-30 13:54:04 +08:00
Christian Moritz
25eac715d0 iojs: move to versions
Closes Homebrew/homebrew#44441.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-09-30 03:49:52 +01:00
Dominyk Tiller
04959403ac Python-for-Formula-Authors: use sha256 for example 2015-09-28 19:14:51 +01:00
Xu Cheng
767d961824 ENV#userpaths!: ensure Superenv.bin and opt path come at first
This ensures that binaries in /usr/local/bin would not overwrite
superenv.

Closes Homebrew/homebrew#44376.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:47:04 +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
Xu Cheng
79f71ca2ef travis: fix Could not parse object TRAVIS_COMMIT
If a PR is edited(e.g. force pushed) during the build.
TRAVIS_COMMIT will be lost. Refetching the merge ref wouldn't
help this situation as well. Since Travis already have reset
$TRAVIS_BUILD_DIR to the commit we need to test, let's use it to
determine TRAVIS_COMMIT directly.

Ref: https://github.com/travis-ci/travis-ci/issues/2666
2015-09-28 21:46:58 +08:00
Xu Cheng
1b33c70d46 FormulaInstaller: cleanup files when pouring bottle failed
Closes Homebrew/homebrew#44325.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-26 13:51:56 +08:00
Xu Cheng
7b97dca554 use skip_deps_check? instead of ignore_deps? hack
We previously set `ignore_deps?` as true for DependencyInstaller to
avoid duplicated dependencies resolution. (See a9fc82aea30506eeacbddeb8b53fb85de8acb9d4)

However, this will cause problem when pouring bottle of a dependency is
failed. In this case, it will try to build dependency from source but
failed due to uninstalled build deps for this formula.

Another disadvantage for using `ignore_deps?` hack is we cannot
distinguish users passing `--ignore-dependencies` flag from we are in
`DependencyInstaller`.

So, let's differentiate these using `skip_deps_check?`
2015-09-26 13:51:56 +08:00
Xu Cheng
5045fc95bf FormulaInstaller: raise if pouring bottle failed and no Xcode/CLT installed 2015-09-26 13:51:56 +08:00
Mike McQuaid
be45e6a0c5 migrator: link Cellar and opt before the keg.
When there's absolute symlinks in a linked directory in the `keg`
(e.g. `bin`)that point to the `Cellar` or `opt` then linking the `keg`
will fail before the `Cellar` or `opt` has been linked.

Closes Homebrew/homebrew#44306.

Closes Homebrew/homebrew#44329.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-25 16:53:34 +01:00
Mike McQuaid
d0cfad03dd travis.yml: always run git reset --hard once. 2015-09-25 15:51:22 +01:00
Mike McQuaid
74a2c3a509 test-bot: add comments, tweak argument handling. 2015-09-25 09:15:10 +01:00
Mike McQuaid
5a11970d63 travis.yml: try to refetch PR commit if missing. 2015-09-25 08:39:13 +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
Xu Cheng
a3bb757507 travis: organize matrix config 2015-09-24 20:35:26 +08:00
Xu Cheng
c3813230c1 Formula#system: fix log output for travis 2015-09-24 16:44:39 +08:00
Mike McQuaid
711e079901 Export more Travis debugging and fix Git issue. 2015-09-24 08:33:08 +01:00
Alex Gaynor
00480edf9d docker-compose: renamed from fig 2015-09-24 03:34:41 +01:00
Dominyk Tiller
87769ee970 style: update rubocop to 0.34.2 2015-09-24 02:18:50 +01:00
Mike McQuaid
f154f4898a bottle: output maximum number of strings matches.
`brew bottle --verbose` outputs all the matches for a string found
in the files inside the Cellar. Instead of outputting all of these just
output the first 100.

Closes Homebrew/homebrew#44266.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-23 15:17:35 +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
9c5427d9a9 travis.yml: retry git fetch. 2015-09-23 21:46:44 +08:00
Mike McQuaid
a782406cc3 travis.yml: check /usr/local permissions. 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
9aecb1be2b formula: increase fail log lines, allow config.
The default is almost never useful. 15 seems like a good medium as it'll
not fill a 80x24 default but provides a bit more context. Also allow it
to be overriden for developers and `test-bot`.
2015-09-23 21:46:43 +08:00
Mike McQuaid
b5a20e79ee travis.yml: add 10.11 image. 2015-09-22 21:05:57 +01:00
Scott Beamer
15875ade93 add link to RISC-V toolchain
Closes Homebrew/homebrew#44196.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-21 15:19:40 +01:00
Martin Afanasjew
366440b5bb commands: sort external commands by name
Closes Homebrew/homebrew#44125.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-21 15:14:42 +01: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
Dominyk Tiller
6e5bef5ee1 Troubleshooting: add El Cap doc link 2015-09-20 18:20:59 +01:00
Dominyk Tiller
bf5482216b El_Capitan_and_Homebrew: add permissions doc 2015-09-20 18:16:35 +01:00
Martin Afanasjew
37ce555104 update: fix test for non-master update support
Commit a71d4a9b (PR Homebrew/homebrew#44058) brought support for updating repositories
with a default branch different from master. This fixes the tests broken
by that commit.

Closes Homebrew/homebrew#44135.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-09-19 16:28:16 +01:00
Misty De Meo
520b8496d4 Fix brew update for taps with non-master branches
Fixes Homebrew/homebrew#43865.
2015-09-19 00:52:23 -07:00
Mike McQuaid
e34033310a test-bot: optionally disable verbose install. 2015-09-19 08:19:49 +01:00
Dominyk Tiller
359cdafb86 doctor: don't false-flag sdk with clt 2015-09-18 15:55:21 +01:00
Xu Cheng
ccbb2ce786 test-bot: Formula#tap is not tap object 2015-09-18 22:19:53 +08:00
Dominyk Tiller
722a43aabe doctor: add xcode 7 SDK check 2015-09-18 15:11:48 +01: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