Skip to content

Commit

Permalink
travis: use a prefix under $HOME/install
Browse files Browse the repository at this point in the history
This allows us to "rm -rf $PREFIX" between tests, just to make sure
nothing from the previous build affects the next test.

Signed-off-by: Jeff Squyres <[email protected]>
  • Loading branch information
jsquyres committed Dec 9, 2016
1 parent bbc35a6 commit 7cddb17
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ addons:

env:
global:
- CPPFLAGS=-I$HOME/include
- LDFLAGS=-L$HOME/lib
- LD_LIBRARY_PATH=$HOME/lib
- LIBFABRIC_CONFIGURE_ARGS="--prefix=$HOME --enable-sockets"
- PREFIX=$HOME/install
- PATH=$PREFIX/bin:$PATH
- CPPFLAGS=-I$PREFIX/include
- LDFLAGS=-L$PREFIX/lib
- LD_LIBRARY_PATH=$PREFIX/lib
- LIBFABRIC_CONFIGURE_ARGS="--prefix=$PREFIX --enable-sockets"

# install dependencies for the usnic providers
before_install:
Expand All @@ -32,8 +34,9 @@ before_install:
install:
- ./autogen.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then ./configure $LIBFABRIC_CONFIGURE_ARGS --enable-debug && make -j2; fi
- ./configure --prefix=$HOME --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
- ./configure --enable-sockets=dl --disable-udp --disable-rxm --disable-rxd --disable-verbs --disable-usnic --prefix=$HOME && make -j2 && make install && make test
- ./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
- ./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
- ./configure $LIBFABRIC_CONFIGURE_ARGS
- make -j2
- make install
Expand All @@ -44,7 +47,7 @@ script:
- git clone https://github.com/ofiwg/fabtests.git
- cd fabtests
- ./autogen.sh
- ./configure --prefix=$HOME --with-libfabric=$HOME
- ./configure --prefix=$PREFIX --with-libfabric=$PREFIX
- make -j2
- make install
- make test

0 comments on commit 7cddb17

Please sign in to comment.