Added Travis support

This commit is contained in:
Jean-Paul Balabanian 2016-02-03 10:39:41 +01:00
parent 10213b025c
commit 000ad4ab48
3 changed files with 39 additions and 0 deletions

21
.travis.yml Normal file
View File

@ -0,0 +1,21 @@
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
before_script:
- export CXX="g++-4.8" CC="gcc-4.8" FC="gfortran-4.8"
- cd ..
script: opm-common/travis/build-and-test-opm-common.sh

View File

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

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

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
pushd . > /dev/null
cd opm-common
mkdir build
cd build
cmake ../
make
popd > /dev/null