forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (49 loc) · 1.83 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sudo: false
language: c
compiler:
- clang
- gcc
os:
- linux
- osx
addons:
apt:
packages:
- rpm
- libnl-3-200
- libnl-3-dev
- libnl-route-3-200
- libnl-route-3-dev
ssh_known_hosts:
- www.openfabrics.org
- git.kernel.org
env:
global:
- CPPFLAGS=-I$HOME/include
- LDFLAGS=-L$HOME/lib
- LD_LIBRARY_PATH=$HOME/lib
- LIBFABRIC_CONFIGURE_ARGS="--prefix=$HOME --enable-sockets"
# install dependencies for the verbs and usnic providers
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd libibverbs && ./autogen.sh && ./configure --prefix=$HOME && make && make install && cd .. ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/ofiwg/librdmacm.git ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd librdmacm && ./autogen.sh && ./configure --prefix=$HOME CC=gcc && make && make install && cd .. ; fi
install:
- ./autogen.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then ./configure $LIBFABRIC_CONFIGURE_ARGS --enable-debug --enable-verbs && make -j2; fi
- ./configure --prefix=$HOME --enable-direct=sockets --enable-udp=no --enable-psm=no --enable-mxm=no --enable-gni=no --enable-psm2=no --enable-verbs=no --enable-usnic=no && make -j2
- ./configure $LIBFABRIC_CONFIGURE_ARGS
- make -j2
- make install
- make test
- make distcheck
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make rpm; fi
script:
- git clone https://github.com/ofiwg/fabtests.git
- cd fabtests
- ./autogen.sh
- ./configure --prefix=$HOME --with-libfabric=$HOME
- make -j2
- make install
- make test