57 Commits

Author SHA1 Message Date
Markus Reiter
d0c0117945 Try using language: ruby in Travis config. 2018-07-02 19:06:29 +10:00
commitay
27b58b6955 travis.yml: update xcode to 9.4 2018-07-02 19:06:29 +10:00
Mike McQuaid
e3be551244
Merge pull request #3847 from MikeMcQuaid/travis-caching
travis.yml: fix bundler caching.
2018-02-27 15:36:34 +00:00
Mike McQuaid
d4a3fc088f travis.yml: fix bundler caching. 2018-02-27 14:30:30 +00:00
Mike McQuaid
530889fdcb travis.yml: don't fetch/clone homebrew/core.
This is now done by `brew test-bot`.
2018-02-27 12:29:01 +00:00
Mike McQuaid
157f84a74d travis.yml: use homebrew/homebrew-core on Linux. 2018-02-21 09:04:34 +00:00
Mike McQuaid
582b9fb3c6 travis.yml: HOME Ruby path caching not needed.
This ins stored in vendor/bundle now instead.
2018-01-26 22:32:55 +00:00
Mike McQuaid
7592b27f43 travis.yml: general cleanup.
- Update Xcode version
- Split out platform-specific code so we can see where time is spent
- Manually trigger vendor Ruby installation
- Use `brew update` to update things
- Use `travis_retry` where relevant.
2018-01-26 21:47:33 +00:00
Mike McQuaid
5e465f08c4
Update .travis.yml 2018-01-26 10:32:04 +00:00
Mike McQuaid
50003d4ddc
Update .travis.yml 2018-01-26 10:12:05 +00:00
Mike McQuaid
377528665a
Update .travis.yml 2018-01-26 09:51:08 +00:00
Markus Reiter
4b231e793d Fix Travis deprecation error. 2018-01-26 03:19:40 +01:00
Mike McQuaid
40af9e6f9f travis.yml: always use Homebrew Ruby. 2017-11-05 14:11:09 +00:00
Mike McQuaid
fe5674d943 travis.yml: avoid cloning Homebrew/homebrew-core.
Rearrange the test-bot clones so that the Homebrew/homebrew-core move
can be successful to avoid the later clone.
2017-10-01 19:53:19 +01:00
Mike McQuaid
56149c725a travis.yml: update Xcode version. 2017-09-29 16:47:46 +01:00
Mike McQuaid
b2b413165f Upgrade vendored Ruby to 2.3.3.
Use this version whenever 2.3.3 isn't installed. Also, remove the Linux
portable Ruby for now until it's built to be the same version.
2017-09-21 14:27:17 +01:00
Mike McQuaid
0187250600 travis.yml: fix umask for brew audit.
Change the umask before we create any files to avoid `brew audit`
complaining about the `chmod` of formulae.
2017-09-06 18:01:08 +01:00
Mike McQuaid
df0abe08b2 travis.yml: only build the master branch.
This avoid two weird things:

- scary messages when building tags fails
- two builds being run instead of one when people create a PR and a
  branch on the Homebrew/brew repo (rather than their fork).
2017-08-05 17:09:32 +01:00
Mike McQuaid
7ea1841f5e travis: fast finish builds.
Show failing Linux builds (which run much more quickly) before the macOS
build has completed.

https://docs.travis-ci.com/user/customizing-the-build/#Fast-Finishing
2017-07-30 17:00:28 +01:00
Mike McQuaid
27cd396d2e travis.yml: remove vendor/bundle cache.
To match https://github.com/Homebrew/homebrew-test-bot/pull/112.
2017-07-16 17:30:56 +01:00
Mike McQuaid
17c5304cc0 travis.yml: tweak how we handle homebrew/test-bot.
On Linux this is currently blowing up for our tags so let's change the
approach.
2017-06-17 14:01:41 +01:00
Mike McQuaid
28cd0d3856 Fix Linux build
Remove `testbottest` formula (this should have lived in the `brew
test-bot` repository from the outset) and make various other changes to
fix the Linux build here.
2017-05-30 09:51:06 +01:00
Mike McQuaid
4356016b4a Use parallel RuboCop
This requires updating to Rubocop 0.49.0 which will require some fixes
to rules, in Homebrew/brew and Homebrew/homebrew-core but opening this
for now so I remember.
2017-05-29 18:42:02 +01:00
Mike McQuaid
9853a78397 Travis CI tweaks.
Attempt to improve Travis CI. This time without any vendoring gems
nonsense.
2017-05-08 08:38:25 +01:00
Mike McQuaid
57db2e539e Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing
changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07 17:28:39 +01:00
Mike McQuaid
a76392dd5f Revert "Merge pull request #2602 from MikeMcQuaid/travis-ci-tweaks"
This reverts commit 8d948e4b0b55912c592d34cb5ea83c649b1f9d5e, reversing
changes made to 2372872974d1049c2beafe7dedb7f8f882502058.
2017-05-07 17:28:34 +01:00
Mike McQuaid
5cdb0d0a6d Travis CI tweaks
Tweak our Travis CI configuration and the one we suggest for taps to
be faster and use caching.
2017-05-07 16:00:04 +01:00
Mike McQuaid
ee253e465b Vendor all Homebrew's gems.
Homebrew's actually ended up using a fair few gems. While we want to
avoid Bundler at runtime (and this PR still does that, in fact uses
Bundler even less at runtime than it did before) writing our own version
to use at build-time seems redundant.
2017-05-07 13:52:57 +01:00
Mike McQuaid
36a387da26 travis: post to Homebrew's Slack. 2017-04-24 17:00:56 +01:00
Mike McQuaid
62764485c7 travis.yml: cache Bundler output.
Travis needs some coaxing to find where we put it. This should improve
build reliability due to network issues.
2017-04-22 15:44:47 +01:00
Mike McQuaid
fde5ced22f travis.yml: keep taps.
This will avoid `brew doctor` trying to retap `homebrew/core` which is
both slow and error-prone.
2017-04-17 14:09:00 +01:00
Mike McQuaid
dc81898331 travis: use Xcode 8.1 on Sierra.
For code coverage from `brew test-bot`.
2016-12-04 14:14:11 +00:00
Mike McQuaid
94580a6cff travis.yml: enable macOS builds again. 2016-12-03 14:45:50 +00:00
Mike McQuaid
b1fba6ed54 Send coverage from Jenkins, don't run OS X Travis.
OS X Travis CI is particularly error-prone, slow and unnecessary for
us when we're already running (fast) OS X builds on Jenkins so use it
just for Linux testing.
2016-09-16 10:20:09 +01:00
Mike McQuaid
bcee1e0841 travis.yml: run test-bot on Linux.
This should verify that we're not breaking our tests on Linux.
2016-07-29 21:21:02 -06:00
Xu Cheng
f57739deda travis: remove dead code 2016-04-12 18:42:25 +08:00
Mike McQuaid
279df8ec81 .travis.yml: only build on latest OS X. (#74)
We have Jenkins to test the other versions.
2016-04-12 11:02:15 +01:00
Xu Cheng
eec323aed8 travis: fix rsync problem 2016-04-03 21:21:18 +08:00
Martin Afanasjew
ae31b48510 travis: remove Ruby path tweak
Putting the Ruby 1.8 we use to run tests on 10.9 into the PATH adversely
affects formulae with a Ruby dependency (possibly other formulae, too).
Remove this hack, as it is no longer needed.

Closes Homebrew/homebrew#47694.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-06 06:22:46 +01:00
Tomasz Pajor
0f86677ffc travis.yml: bump ulimit to 1024
Closes Homebrew/homebrew#43635.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-25 20:13:10 +00:00
Martin Afanasjew
6d802d8087 travis: use Xcode 7.2 on 10.11 and 7.1.1 on 10.10
Closes Homebrew/homebrew#47056.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2015-12-16 19:58:01 +01:00
Mike McQuaid
2fea571863 travis.yml: chown /usr/local. 2015-11-29 16:19:55 +00:00
Dominyk Tiller
59d2d7b0b0 travis: untap versions after ruby187 install 2015-11-22 21:44:51 +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
f5d7e6915b travis: send failure emails to committer/author. 2015-10-24 11:00:16 +01:00
Xu Cheng
01270ea12c travis: fix slack notification 2015-10-24 15:50:06 +08:00
Mike McQuaid
4934dbb905 travis.yml: email on failure, post to Slack. 2015-10-20 08:33:20 +01: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
Mike McQuaid
d0cfad03dd travis.yml: always run git reset --hard once. 2015-09-25 15:51:22 +01:00
Mike McQuaid
5a11970d63 travis.yml: try to refetch PR commit if missing. 2015-09-25 08:39:13 +01:00