Revision 7dddb0219dc6a4a10449b4518e11a97c2364217e authored by Christophe Prud'homme on 22 February 2015, 22:40:51 UTC, committed by Christophe Prud'homme on 22 February 2015, 22:40:51 UTC
1 parent cfc36cc
.travis.yml
os:
- linux
git:
depth: 1
submodules: false
language: cpp
compiler:
- clang
env:
- BUILD="llvm-3.4" FEELPP_CXX=clang++-3.4 FEELPP_CC=clang-3.4 BUILDTYPE=Release TARGET=quickstart CXXFLAGS="-O2 -DNDEBUG"
- BUILD="llvm-3.5" FEELPP_CXX=clang++-3.5 FEELPP_CC=clang-3.5 BUILDTYPE=Release TARGET=quickstart CXXFLAGS="-O2 -DNDEBUG"
#- BUILD="g-debug" BUILDTYPE=Debug
#- BUILDTYPE=Release TARGET=tutorial
before_install:
- echo $TRAVIS_OS_NAME
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo add-apt-repository -y ppa:boost-latest/ppa; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo add-apt-repository -y ppa:kalakris/eigen; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo add-apt-repository -y ppa:feelpp/petsc; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-get -qq update; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-add-repository --yes ppa:ubuntu-toolchain-r/test; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-add-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main'; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-add-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main'; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-add-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main'; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-get update; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then apt-cache search clang; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-get install $FEELPP_CC; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then sudo apt-get install -qq libboost1.55-all-dev mpi-default-dev mpi-default-bin libeigen3-dev
libpetsc3.4.2-dev libcln-dev petsc-dev libxml2-dev gmsh bison flex doxygen doxygen-latex transfig
imagemagick libtbb-dev libann-dev libglpk-dev automake libtool; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then export CXX=$FEELPP_CXX; fi
- if test "x$TRAVIS_OS_NAME" = "xlinux"; then export CC=$FEELPP_CC; fi
- if test "x$TRAVIS_OS_NAME" = "xosx"; then cd /usr/local && git remote add feelpp https://github.com/feelpp/homebrew.git && git pull feelpp master; fi
- if test "x$TRAVIS_OS_NAME" = "xosx"; then brew tap feelpp/science; fi
- if test "x$TRAVIS_OS_NAME" = "xosx"; then ls /usr/local/Cellar; fi
- if test "x$TRAVIS_OS_NAME" = "xosx"; then brew install open-mpi; fi
- if test "x$TRAVIS_OS_NAME" = "xosx"; then brew install --only-dependencies feelpp; fi
#install some submodules
- git submodule update --init --recursive contrib/nlopt
- git submodule update --init --recursive contrib/nt2
- git submodule update --init --recursive contrib/ipopt
- git submodule update --init --recursive quickstart
install:
- mkdir opt-$BUILD && cd opt-$BUILD && ../configure --build=$BUILDTYPE -v --cxxflags="$CXXFLAGS"
script:
- make -j16 feelpp_ginac
- make -j2 feelpp
- if ! test "x$TARGET" = "x"; then make $TARGET-check; fi
branches:
only:
- develop
- master
cache:
- apt
notifications:
email:
recipients:
- feelpp-devel@feelpp.org
on_success: change
on_failure: change
matrix:
allow_failures:
- gcc
- osx
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...