Add macOS build on Travis
This commit is contained in:
+11
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user