Unverified Commit c286c605 authored by Stephen's avatar Stephen Committed by Ralph Giles
Browse files

Add macOS and clang builds to the travis config.

Improve coverage by building more variants in integration

There's no equivalent of the apt addon for macOS builds, so
we put dependencies in Brewfile and call `brew bundle` to
install them. This works better than calling `brew install`
directly since the later will error if a package is already
installed, and even if the error is ignored it won't update
to the latest version available, resulting in binaried built
against e.g. vulnerable versions of openssl.

To avoid conflicts with Apple's deprecated openssl package,
homebrew doesn't install its openssl package in the default
search path, so we need to manually append the its location
to PKG_CONFIG_PATH. We cannot build against Apple's package
because while it provides libraries and an openssl.pc file,
no headers are available.
Signed-off-by: Ralph Giles's avatarRalph Giles <giles@thaumas.net>
parent 440e26f6
language: c
- gcc
- clang
- linux
- osx
- libogg-dev
- libopus-dev
env: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl/lib/pkgconfig
install: if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
- ./autogen.sh
- ./configure
brew 'opus'
brew 'libogg'
brew 'openssl'
brew 'autoconf'
brew 'automake'
brew 'libtool'
brew 'pkg-config'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment