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 language: c
os:
- osx
- linux
compiler: compiler:
- clang - clang
- gcc - gcc
install: install:
- sudo apt-get update || true #macos
- sudo apt-get install build-essential - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- sudo apt-get install libpcap-dev libtool autoconf automake autogen # - 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: before_script:
- ./autogen.sh - ./autogen.sh