Skip to content

Commit

Permalink
Update to Ubuntu Trusty image and build verbs provider in Travis CI
Browse files Browse the repository at this point in the history
Use distro libibverbs and librdmacm packages. Move to latest
Ubuntu Trusty image so that we can build the verbs provider.

Signed-off-by: Arun C Ilango <[email protected]>
  • Loading branch information
Arun C Ilango committed Feb 15, 2017
1 parent 74d8b33 commit 494f80e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
sudo: false
language: c
compiler:
Expand All @@ -11,6 +12,7 @@ addons:
packages:
- rpm
- libibverbs-dev
- librdmacm-dev
- libnl-3-200
- libnl-3-dev
- libnl-route-3-200
Expand All @@ -19,13 +21,6 @@ addons:
- www.openfabrics.org
- git.kernel.org

# NOTE: The librdmacm-dev package in the "precise" Ubuntu image that
# we use at Travis does not have <rdma/rsocket.h> that the verbs
# provider needs (it's too old). If we move to a newer Ubuntu image
# that has a newer librdmacm-dev package, it may have
# <rdma/rsocket.h>, and you can --enable-verbs in the
# LIBFABRIC_CONFIGURE_OPTIONS.

env:
global:
- PREFIX=$HOME/install
Expand All @@ -41,15 +36,19 @@ before_install:

install:
- ./autogen.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then LIBRARY_CONFIGURE_ARGS="$LIBFABRIC_CONFIGURE_ARGS --enable-usnic"; fi
# Build verbs only in linux as OS X doesn't have verbs support
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then LIBRARY_CONFIGURE_ARGS="$LIBFABRIC_CONFIGURE_ARGS --enable-usnic --enable-verbs"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "`basename $CC`" == "clang" ]]; then ./configure CFLAGS="-Werror $CFLAGS" $LIBFABRIC_CONFIGURE_ARGS --enable-debug && make -j2; fi
# Test fabric direct
- ./configure --prefix=$PREFIX --enable-direct=sockets --enable-udp=no --enable-psm=no --enable-gni=no --enable-psm2=no --enable-verbs=no --enable-usnic=no --enable-rxm=no --enable-rxd=no
- make -j2
# Test loadable library option
- ./configure --enable-sockets=dl --disable-udp --disable-rxm --disable-rxd --disable-verbs --disable-usnic --prefix=$PREFIX
- make -j2
- make install
- make test
- rm -rf $PREFIX
# Test regular build
- ./configure $LIBFABRIC_CONFIGURE_ARGS
- make -j2
- make install
Expand Down

0 comments on commit 494f80e

Please sign in to comment.