]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
travis: test with OSX and clang
authorVincent Bernat <bernat@luffy.cx>
Sun, 2 Mar 2014 23:24:56 +0000 (00:24 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 2 Mar 2014 23:24:56 +0000 (00:24 +0100)
It seems that Travis-CI now supports OSX and clang. Let's try out. See:
 https://github.com/pyca/cryptography/blob/master/.travis.yml

.travis.yml

index b3b9dd7b88ff2a1dac25c13ecea61885113f24ae..fbea7996ee529d721b6e487e7f83c43c4fbe5497 100644 (file)
@@ -1,9 +1,18 @@
-language: "python"
+language: c
+os:
+  - linux
+  - osx
+compiler:
+  - clang
+  - gcc
 install:
-  - "sudo apt-get -qq update"
-  - "sudo apt-get -y install automake autoconf libtool pkg-config"
-  - "sudo apt-get -y install libsnmp-dev libxml2-dev libjansson-dev libevent-dev libreadline-dev libbsd-dev check"
-script: "./autogen.sh && ./configure $LLDPD_CONFIG_ARGS && make && make check && make distcheck && sudo make install"
+  - [[ "$(uname -s)" != "Darwin" ]] || sudo apt-get -qqy update
+  - [[ "$(uname -s)" != "Darwin" ]] || sudo apt-get -qqy install automake autoconf libtool pkg-config 
+  - [[ "$(uname -s)" != "Darwin" ]] || sudo apt-get -qqy install libsnmp-dev libxml2-dev libjansson-dev libevent-dev libreadline-dev libbsd-dev check
+  - [[ "$(uname -s)" == "Darwin" ]] && brew update
+  - [[ "$(uname -s)" == "Darwin" ]] && brew install pkg-config autoconf automake libtool
+  - [[ "$(uname -s)" == "Darwin" ]] && brew install readline libevent net-snmp jansson libxml2 check
+script: ./autogen.sh && ./configure $LLDPD_CONFIG_ARGS && make && make check && make distcheck && sudo make install
 env:
   - LLDPD_CONFIG_ARGS=""
   - LLDPD_CONFIG_ARGS="--with-embedded-libevent"