After some tweaks, they seem to work as expected.
language: c
os: linux
+dist: trusty
compiler: gcc
sudo: require
install:
brew update
brew install libevent jansson libxml2 check net-snmp
;;
- *)
+ Linux)
# Linux
sudo apt-get -qqy update
sudo apt-get -qqy install \
libsnmp-dev libxml2-dev libjansson-dev \
libevent-dev libreadline-dev libbsd-dev \
check
+ # For integration tests
+ sudo -H $(which python3) -m pip install -r tests/integration/requirements.txt
;;
esac
esac
./autogen.sh
-./configure $LLDPD_CONFIG_ARGS --enable-pie CFLAGS="-O0 -g"
+./configure $LLDPD_CONFIG_ARGS --enable-pie --localstatedir=/var --sysconfdir=/etc --prefix=/usr CFLAGS="-O0 -g"
make all check CFLAGS=-Werror
make distcheck
+
+case "$(uname -s)" in
+ Darwin)
+ # Create a package
+ make -C osx pkg
+ ;;
+ Linux)
+ # Integration tests
+ cd tests/integration
+ sudo $(which python3) -m pytest -n 5 -vvv --boxed
+ ;;
+esac
apipkg==1.4
execnet==1.4.1
-pkg-resources==0.0.0
py==1.4.31
pyroute2==0.3.16
pytest==2.9.0