travis: try to use addons to install deps
@@ -16,16 +16,28 @@ matrix:
- COVERITY_SCAN_BUILD_COMMAND="make"
- compiler: clang
os: osx
+ env:
+ - LDFLAGS="-L$(brew --prefix)/opt/libressl/lib"
+ - CPPFLAGS="-I$(brew --prefix)/opt/libressl/include"
# gcc is actually clang on OSX, so pointless to test twice
+addons:
+ apt:
+ packages:
+ - libonig-dev
+ - libpcre3-dev
+ - zlib1g-dev
+ homebrew:
+ packages:
+ - lz4
+ - oniguruma
+ - pcre
+ - pcre2
+ - libressl
+ update: true # working around unknown bundle command
+
script:
- |
- if [ $TRAVIS_OS_NAME = osx ]; then
- brew update > /dev/null
- brew install lz4 openssl oniguruma pcre pcre2
- else
- sudo apt-get install libonig-dev libpcre3-dev zlib1g-dev
- fi
# workaround git not retaining mtimes and bison/flex not being uptodate
- touch conffile.yy.c conffile.tab.c conffile.tab.h
- touch configure.ac Makefile.am aclocal.m4 configure Makefile.in config.h.in
