I attached a patch which speeds up osx builds by 10 minutes, сб, 11 июл. 2020 г. в 00:48, Илья Шипицин <chipits...@gmail.com>:
> he-he, brew bundle is deprecated (does not work) > > > https://apple.stackexchange.com/questions/148454/brew-bundle-reporting-error-unknown-command-bundle > > пт, 10 июл. 2020 г. в 14:55, Илья Шипицин <chipits...@gmail.com>: > >> >> >> пт, 10 июл. 2020 г. в 14:21, Vincent Bernat <ber...@luffy.cx>: >> >>> ❦ 9 juillet 2020 13:12 +05, Илья Шипицин: >>> >>> > do you think does it make sense to use scripted brew instead of travis >>> > plugin ? >>> > >>> > if so, we can try to "brew instal blah-blah-blah || ok, we failed, >>> lets' >>> > update and install one more time" >>> >>> I have also hit the problem several time. Brew upstream says to use >>> "brew bundle" instead: >>> >>> #v+ >>> - brew install libtool libxml2 check >>> + brew bundle --file=- <<-EOS >>> +brew "libtool" >>> +brew "libxml2" >>> +brew "check" >>> +EOS >>> #v- >>> >>> This way, brew doesn't complain if a requested package is already >>> installed but not at the latest version. >>> >> >> that's nice. >> >> I'll try to >> >> 1) get rid of socat >> 2) use brew command line >> 3) switch osx to Github Actions (thus we probably will run 4 builds in >> parallel in travis and 4 builds in Github Actions) >> >> >> >>> -- >>> It is a wise father that knows his own child. >>> -- William Shakespeare, "The Merchant of Venice" >>> >>
From 49063133cf8a8e8d6d35a2bda1117ea6609910fd Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin <chipits...@gmail.com> Date: Sat, 11 Jul 2020 01:15:43 +0500 Subject: [PATCH] CI: travis-ci: speed up osx build by running brew scripted 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, --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 39b52ce2c..e455c3c77 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: @@ -96,6 +93,8 @@ matrix: - os: osx if: type == push compiler: clang + before_script: + - HOMEBREW_NO_AUTO_UPDATE=1 brew install socat env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1f - os: linux if: type == cron -- 2.26.2