I decided to switch to the latest osx available (list:
https://docs.travis-ci.com/user/reference/osx/#macos-version )
I attached updated patch

сб, 11 июл. 2020 г. в 14:37, Vincent Bernat <ber...@luffy.cx>:

>  ❦ 11 juillet 2020 12:45 +05, Илья Шипицин:
>
> >> > he-he, brew bundle is deprecated (does not work)
> >> >
> >> >
> >>
> https://apple.stackexchange.com/questions/148454/brew-bundle-reporting-error-unknown-command-bundle
> >>
> >> It's very old. It has been added back at some point. Here is upstream
> >> recommending its use: https://github.com/Homebrew/brew/issues/2491
> >
> >
> > https://travis-ci.com/github/chipitsine/haproxy/jobs/359964175#L133
>
> It seems brew shipped by Travis is quite old. A `brew update` would fix
> this but then it adds 10 minutes to the build... So, back to square one.
> --
> Nothing so needs reforming as other people's habits.
>                 -- Mark Twain, "Pudd'nhead Wilson's Calendar"
>
From 16cf456954698a465b5bf6d2e937cd0224f6a6ec Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin <chipits...@gmail.com>
Date: Sat, 11 Jul 2020 21:51:37 +0500
Subject: [PATCH] CI: travis-ci: speed up osx build by running brew scripted,
 switch to latest osx image

we used to use travis-ci brew plugin to install "socat", travis-ci brew
plugin works predictable in "all update" mode. sometimes it might take 12 minutes.

let us improve developer velocity by running brew from command line. It takes 2 minutes
instead of 12 minutes

latest osx seems to have more stable brew, let us switch to latest osx available.
osx images list: https://docs.travis-ci.com/user/reference/osx/#macos-version
---
 .travis.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 39b52ce2c..cf227b3a5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,9 +22,6 @@ addons:
   apt:
     update: true
     packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, clang-9, socat, ninja-build ]
-  homebrew:
-    update: true
-    packages: [ socat ]
 
 cache:
   directories:
@@ -94,8 +91,12 @@ matrix:
     compiler: clang
     env: TARGET=linux-glibc FLAGS= CC=clang-9
   - os: osx
+    osx_image: xcode12
     if: type == push
     compiler: clang
+    before_script:
+      - echo 'brew "socat"' > brew.bundle
+      - brew bundle --file=brew.bundle
     env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1f
   - os: linux
     if: type == cron
-- 
2.26.2

Reply via email to