Add macOS build on Travis

This commit is contained in:
Alexis La Goutte
2016-11-28 10:55:29 +01:00
parent d53b655c32
commit eeef26ae59
+11 -3
View File
@@ -1,13 +1,21 @@
language: c
os:
- osx
- linux
compiler:
- clang
- gcc
install:
- sudo apt-get update || true
- sudo apt-get install build-essential
- sudo apt-get install libpcap-dev libtool autoconf automake autogen
#macos
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libtool; fi
#linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update || true; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install build-essential; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libpcap-dev libtool autoconf automake autogen; fi
before_script:
- ./autogen.sh