travis: Install pip to install pytest in "all" tests

This allows ./configure to detect py.test, and execute python unit tests we
provide in the vici python egg.
This commit is contained in:
Martin Willi 2015-03-18 14:28:17 +01:00
parent 2e74aa0a91
commit 75a8457922
2 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,7 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq bison flex gperf gettext
- ./scripts/test.sh deps
- ./scripts/test.sh pydeps
script:
- ./autogen.sh

View File

@ -52,7 +52,8 @@ all)
DEPS="$DEPS libcurl4-gnutls-dev libsoup2.4-dev libunbound-dev libldns-dev
libmysqlclient-dev libsqlite3-dev clearsilver-dev libfcgi-dev
libnm-glib-dev libnm-glib-vpn-dev libpcsclite-dev libpam0g-dev
binutils-dev libunwind7-dev libjson0-dev iptables-dev"
binutils-dev libunwind7-dev libjson0-dev iptables-dev python-pip"
PYDEPS="pytest"
;;
win*)
CONFIG="--disable-defaults --enable-svc --enable-ikev2
@ -95,6 +96,11 @@ if test "$1" = "deps"; then
exit $?
fi
if test "$1" = "pydeps"; then
test -z "$PYDEPS" || sudo pip -q install $PYDEPS
exit $?
fi
CONFIG="$CONFIG
--enable-silent-rules
--enable-test-vectors