add travis setup

This commit is contained in:
Arne Morten Kvarving 2016-05-09 10:24:28 +02:00
parent 80c47f8c66
commit 710079fdbf
3 changed files with 65 additions and 0 deletions

47
.travis.yml Normal file
View File

@ -0,0 +1,47 @@
language: cpp
compiler:
- gcc
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- libboost1.55-all-dev
- gcc-4.8
- g++-4.8
- gfortran-4.8
- liblapack-dev
- libgmp3-dev
- libsuitesparse-dev
install:
- export CXX="g++-4.8" CC="gcc-4.8" FC="gfortran-4.8"
- cd ..
- git clone https://github.com/OPM/opm-common.git
- git clone https://github.com/OPM/opm-parser.git
- git clone https://github.com/OPM/opm-material.git
- git clone https://github.com/OPM/opm-core.git
- git clone https://github.com/OPM/opm-grid.git
- git clone https://github.com/OPM/opm-output.git
- git clone https://github.com/OPM/opm-data.git
- opm-parser/travis/clone-and-build-ert.sh
- opm-material/travis/clone-and-build-dune-common.sh
- opm-core/travis/clone-and-build-dune-istl.sh
- opm-core/travis/clone-and-build-superlu.sh
- opm-grid/travis/clone-and-build-dune-geometry.sh
- opm-grid/travis/clone-and-build-dune-grid.sh
- opm-common/travis/build-opm-common.sh
- opm-parser/travis/build-opm-parser.sh
- opm-material/travis/build-opm-material.sh
- opm-core/travis/build-opm-core.sh
- opm-grid/travis/build-opm-grid.sh
- opm-output/travis/build-opm-output.sh
script: opm-upscaling/travis/build-and-test-opm-upscaling.sh

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -ex
pushd . > /dev/null
opm-upscaling/travis/build-opm-upscaling.sh
cd opm-upscaling/build
ctest --output-on-failure
popd > /dev/null

10
travis/build-opm-upscaling.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -ex
pushd . > /dev/null
cd opm-upscaling
mkdir build
cd build
cmake -D SUPERLU_ROOT=../../SuperLU ../
make
popd > /dev/null