Skip to content

Commit

Permalink
Added Travis support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Paul Balabanian committed Feb 8, 2016
1 parent 279799e commit ab3ea52
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
- libeigen3-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-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-common/travis/build-opm-common.sh
- opm-parser/travis/build-opm-parser.sh
- opm-material/travis/build-opm-material.sh

script: opm-core/travis/build-and-test-opm-core.sh
3 changes: 1 addition & 2 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Open Porous Media Core Library
==============================
# Open Porous Media Core Library [![Build Status](https://travis-ci.org/OPM/opm-core.svg?branch=master)](https://travis-ci.org/OPM/opm-core)

These are release notes for opm-core.

Expand Down
8 changes: 8 additions & 0 deletions travis/build-and-test-opm-core.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e

pushd . > /dev/null
opm-core/travis/build-opm-core.sh
cd opm-core/build
ctest --output-on-failure
popd > /dev/null
10 changes: 10 additions & 0 deletions travis/build-opm-core.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e

pushd . > /dev/null
cd opm-core
mkdir build
cd build
cmake -D SUPERLU_ROOT=../../SuperLU ../
make
popd > /dev/null
12 changes: 12 additions & 0 deletions travis/clone-and-build-dune-istl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e

pushd . > /dev/null
git clone https://github.com/dune-project/dune-istl.git
cd dune-istl
git checkout tags/v2.3.1
mkdir build
cd build
cmake ../
make
popd > /dev/null
11 changes: 11 additions & 0 deletions travis/clone-and-build-superlu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e

pushd . > /dev/null
git clone https://github.com/starseeker/SuperLU.git
cd SuperLU
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=.. -D SUPERLU_BUILD_EXAMPLES=OFF -D SUPERLU_ENABLE_TESTING=OFF ../
make install
popd > /dev/null

0 comments on commit ab3ea52

Please sign in to comment.