travis-ci: try to install libevent2 on OS X

This commit is contained in:
Thomas Bernard 2015-09-09 17:21:32 +02:00
parent 0d7dd1c7cd
commit 5d78b8e302
1 changed files with 4 additions and 0 deletions

View File

@ -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'