Skip to content

Commit ab3ea52

Browse files
author
Jean-Paul Balabanian
committed
Added Travis support
1 parent 279799e commit ab3ea52

6 files changed

+81
-2
lines changed

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: cpp
2+
3+
compiler:
4+
- gcc
5+
6+
addons:
7+
apt:
8+
sources:
9+
- boost-latest
10+
- ubuntu-toolchain-r-test
11+
packages:
12+
- libboost1.55-all-dev
13+
- gcc-4.8
14+
- g++-4.8
15+
- gfortran-4.8
16+
- liblapack-dev
17+
- libgmp3-dev
18+
- libsuitesparse-dev
19+
- libeigen3-dev
20+
21+
install:
22+
- export CXX="g++-4.8" CC="gcc-4.8" FC="gfortran-4.8"
23+
- cd ..
24+
25+
- git clone https://github.com/OPM/opm-common.git
26+
- git clone https://github.com/OPM/opm-parser.git
27+
- git clone https://github.com/OPM/opm-material.git
28+
- git clone https://github.com/OPM/opm-data.git
29+
30+
- opm-parser/travis/clone-and-build-ert.sh
31+
- opm-material/travis/clone-and-build-dune-common.sh
32+
- opm-core/travis/clone-and-build-dune-istl.sh
33+
- opm-core/travis/clone-and-build-superlu.sh
34+
35+
- opm-common/travis/build-opm-common.sh
36+
- opm-parser/travis/build-opm-parser.sh
37+
- opm-material/travis/build-opm-material.sh
38+
39+
script: opm-core/travis/build-and-test-opm-core.sh

README renamed to README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Open Porous Media Core Library
2-
==============================
1+
# Open Porous Media Core Library [![Build Status](https://travis-ci.org/OPM/opm-core.svg?branch=master)](https://travis-ci.org/OPM/opm-core)
32

43
These are release notes for opm-core.
54

travis/build-and-test-opm-core.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
pushd . > /dev/null
5+
opm-core/travis/build-opm-core.sh
6+
cd opm-core/build
7+
ctest --output-on-failure
8+
popd > /dev/null

travis/build-opm-core.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
pushd . > /dev/null
5+
cd opm-core
6+
mkdir build
7+
cd build
8+
cmake -D SUPERLU_ROOT=../../SuperLU ../
9+
make
10+
popd > /dev/null

travis/clone-and-build-dune-istl.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
pushd . > /dev/null
5+
git clone https://github.com/dune-project/dune-istl.git
6+
cd dune-istl
7+
git checkout tags/v2.3.1
8+
mkdir build
9+
cd build
10+
cmake ../
11+
make
12+
popd > /dev/null

travis/clone-and-build-superlu.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
pushd . > /dev/null
5+
git clone https://github.com/starseeker/SuperLU.git
6+
cd SuperLU
7+
mkdir build
8+
cd build
9+
cmake -D CMAKE_INSTALL_PREFIX=.. -D SUPERLU_BUILD_EXAMPLES=OFF -D SUPERLU_ENABLE_TESTING=OFF ../
10+
make install
11+
popd > /dev/null

0 commit comments

Comments
 (0)