Merge pull request #1234 from ggouaillardet/poc/travis_gcc5
Poc/travis gcc5
Этот коммит содержится в:
Коммит
bd04192087
19
.travis.yml
19
.travis.yml
@ -33,6 +33,8 @@ addons:
|
|||||||
- libnl-route-3-dev
|
- libnl-route-3-dev
|
||||||
- libibverbs-dev
|
- libibverbs-dev
|
||||||
- librdmacm-dev
|
- librdmacm-dev
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
@ -40,15 +42,21 @@ env:
|
|||||||
- CPPFLAGS="-I$HOME/bogus/include"
|
- CPPFLAGS="-I$HOME/bogus/include"
|
||||||
- LDFLAGS="-I$HOME/bogus/lib"
|
- LDFLAGS="-I$HOME/bogus/lib"
|
||||||
- LD_LIBRARY_PATH="$HOME/bogus/lib"
|
- LD_LIBRARY_PATH="$HOME/bogus/lib"
|
||||||
- CONFIGURE_ARGS="--prefix=$HOME/bogus"
|
matrix:
|
||||||
- DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_ARGS"
|
- GCC_VERSION=default
|
||||||
|
- GCC_VERSION=5
|
||||||
|
|
||||||
# Install dependencies for the verbs and usnic providers. Open MPI is
|
# Install dependencies for the verbs and usnic providers. Open MPI is
|
||||||
# not currently using the verbs provider in Libfabric, so we might as
|
# not currently using the verbs provider in Libfabric, so we might as
|
||||||
# well not build it.
|
# well not build it.
|
||||||
before_install:
|
before_install:
|
||||||
|
- if [[ "GCC_VERSION" == "5" ]]; then COMPILERS="CC=gcc-5 CXX=g++-5 FC=gfortran-5"; fi
|
||||||
|
- export CONFIGURE_ARGS="--prefix=$HOME/bogus $COMPILERS" DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_ARGS"
|
||||||
|
- export DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_ARGS"
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/ofiwg/libfabric.git ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/ofiwg/libfabric.git ; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd libfabric && ./autogen.sh && ./configure --prefix=$HOME/bogus --enable-usnic --disable-verbs && make install && cd .. ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$GCC_VERSION" == "5" ]] ; then sudo apt-get --assume-yes install gcc-5 g++-5 gfortran-5; fi
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd libfabric && ./autogen.sh && ./configure --prefix=$HOME/bogus --enable-usnic --disable-verbs $COMPILERS && make install && cd .. ; fi
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$GCC_VERSION" == "5" ]] ; then brew update; brew unlink gcc ; brew install gcc; fi
|
||||||
|
|
||||||
# Note that we use "make -k" to do the entire build, even if there was a
|
# Note that we use "make -k" to do the entire build, even if there was a
|
||||||
# build error in there somewhere. This prevents us from needing to submit
|
# build error in there somewhere. This prevents us from needing to submit
|
||||||
@ -66,3 +74,8 @@ install:
|
|||||||
# a minor optimization to make the overall set of builds faster).
|
# a minor optimization to make the overall set of builds faster).
|
||||||
script:
|
script:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then make distcheck; else make check; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then make distcheck; else make check; fi
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
exclude:
|
||||||
|
- env: GCC_VERSION=5
|
||||||
|
compiler: clang
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user