ci: travis: osx: switch to newer macos image and brew addon for packages

Summary:
One of the time consuming parts of the macos build we have is the
installing of the efl dependencies as packages from brew.
The brew update command alone is often taking 5m to run.

To avoid running brew update at all we are switching to a newer osx
image from Travis, which comes with a newer set of brew metadata and
gets us around a brew update for now. Together with this we are also
switching from our own dependency install script to the brew package
addon provided by travis already.

In my testing this shows we are only spending 270s in the brew package
updates comapred to 635s before. So we have a 6 minutes speedup for
every osx build!
Depends on D9161

Reviewers: zmike, bu5hm4n

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9162
This commit is contained in:
Stefan Schmidt 2019-06-24 09:10:56 -04:00 committed by Mike Blumenkrantz
parent dafd23655f
commit 61235a6e5c
2 changed files with 31 additions and 7 deletions

View File

@ -1,6 +0,0 @@
#!/bin/sh
brew update
brew unlink python
brew install gettext check bullet dbus fontconfig freetype fribidi gst-plugins-good gstreamer luajit openssl webp libsndfile glib libspectre libraw librsvg poppler lz4 pulseaudio ccache ninja python3 libffi
pip3 install meson

View File

@ -6,6 +6,36 @@ cache:
sudo: required
dist: trusty
osx_image: xcode10.2
addons:
homebrew:
packages:
- gettext
- check
- bullet
- dbus
- fontconfig
- freetype
- fribidi
- gst-plugins-good
- gstreamer
- luajit
- openssl
- webp
- libsndfile
- glib
- libspectre
- libraw
- librsvg
- poppler
- lz4
- pulseaudio
- ccache
- ninja
- python3
- libffi
env:
global:
- EIO_MONITOR_POLL=1
@ -47,7 +77,7 @@ before_install:
rm -rf $HOME/Library/Caches/Homebrew
rm -rf $HOME/cachedir/Homebrew/Homebrew
mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
.ci/ci-osx-deps.sh
pip3 install meson
fi
before_script: