Skip to content

Commit

Permalink
travis: Build rdma-core in linux travis builds
Browse files Browse the repository at this point in the history
Adds the capability to build rdma-core for linux travis builds.
This build should be linked so that we can build libfabric
against newer versions of libibverbs than the travis container
provides by default.

Signed-off-by: James Swaro <[email protected]>
  • Loading branch information
jswaro committed Nov 7, 2018
1 parent 5b15323 commit 7c1d062
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,31 @@ addons:
apt:
packages:
- rpm
- libibverbs-dev
- librdmacm-dev
- libnl-3-200
- libnl-3-dev
- libnl-route-3-200
- libnl-route-3-dev
- libnuma-dev
# required for rdma-core
- build-essential
- debhelper
- dh-systemd
- fakeroot
- gcc
- git
- libudev-dev
- make
- ninja-build
- pandoc
- pkg-config
- python
- valgrind
- sparse
- wget
- abi-compliance-checker
- abi-dumper
# 32 bit support packages
- gcc-multilib
ssh_known_hosts:
- www.openfabrics.org
- git.kernel.org
Expand All @@ -39,10 +57,15 @@ before_install:

install:
- ./autogen.sh
# Build rdma-core because ubuntu trusty doesn't have a sufficiently new version of ibverbs/rdma-core
# Build verbs only in linux as OS X doesn't have verbs support
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
RDMA_CORE_BRANCH=v13 ;
git clone --depth 1 -b $RDMA_CORE_BRANCH https://github.com/linux-rdma/rdma-core.git && cd rdma-core && bash build.sh && cd - ;
RDMA_CORE_PATH=$PWD/rdma-core/build ;
export LD_LIBRARY_PATH="$RDMA_CORE_PATH/lib:$LD_LIBRARY_PATH" ;
LIBFABRIC_CONFIGURE_ARGS="$LIBFABRIC_CONFIGURE_ARGS --enable-usnic
--enable-verbs --enable-mlx=$HOME/mlx";
--enable-verbs=$RDMA_CORE_PATH --enable-mlx=$HOME/mlx";
UCX_BRANCH=v1.2.x;
git clone --depth 1 -b $UCX_BRANCH https://github.com/openucx/ucx.git && cd ucx && ./autogen.sh && ./configure --prefix=$HOME/mlx CFLAGS="-w" && make -j2 install && cd -;
fi
Expand Down

0 comments on commit 7c1d062

Please sign in to comment.