From 81c693e642a44ea6b86e3e86294cffe05605da65 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 3 Mar 2014 00:24:56 +0100 Subject: [PATCH] travis: test with OSX and clang 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 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3b9dd7b..fbea7996 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" -- 2.39.5