From 5d78b8e30258a24e9db30b2f6b2d0ecb0a8d1b61 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 9 Sep 2015 17:21:32 +0200 Subject: [PATCH] travis-ci: try to install libevent2 on OS X --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3cf7270..34ce98c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,10 @@ compiler: - gcc - clang +before_install: + - 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi' + - 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew outdated libevent2 || brew upgrade libevent2; fi' + script: - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT' - 'MAKEFILE=Makefile && if [ -f Makefile.linux -a "$TRAVIS_OS_NAME" = "linux" ]; then MAKEFILE=Makefile.linux; elif [ -f Makefile.macosx -a "$TRAVIS_OS_NAME" = "osx" ]; then MAKEFILE=Makefile.macosx; fi'