Skip to content

Commit c286c60

Browse files
stephengroatrillian
authored andcommitted
Add macOS and clang builds to the travis config.
Improve coverage by building more variants in integration testing. 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 <[email protected]>
1 parent 440e26f commit c286c60

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
language: c
22

3+
compiler:
4+
- gcc
5+
- clang
6+
7+
os:
8+
- linux
9+
- osx
10+
311
addons:
412
apt:
513
packages:
614
- libogg-dev
715
- libopus-dev
816

17+
env: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl/lib/pkgconfig
18+
19+
install: if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
20+
921
script:
1022
- ./autogen.sh
1123
- ./configure

Brewfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
brew 'opus'
2+
brew 'libogg'
3+
brew 'openssl'
4+
brew 'autoconf'
5+
brew 'automake'
6+
brew 'libtool'
7+
brew 'pkg-config'

0 commit comments

Comments
 (0)