aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorPjotr Prins2017-08-13 05:58:55 +0000
committerPjotr Prins2017-08-13 08:11:05 +0000
commit655970b7c0b6dc904caab04022e78e210f23294f (patch)
tree5cba2d3232ac3352d75932301bf335f8a4aebc04 /.travis.yml
parentcfcd91563e90e0492d93ab273e72fe73a97af94f (diff)
downloadpangemma-655970b7c0b6dc904caab04022e78e210f23294f.tar.gz
Adding travis-ci support for g++-4.9 and g++-6 on Linux. Tests pass.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1eaffd8
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,41 @@
+language: g++
+compiler: gcc
+matrix:
+ include:
+ - os: linux
+ addons:
+ apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ packages:
+ - g++-4.9
+ env:
+ - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
+ - os: linux
+ addons:
+ apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ packages:
+ - g++-6
+ env:
+ - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
+before_install:
+ - sudo apt-get -qq update
+ - sudo apt-get install -y libopenblas-dev zlib1g-dev
+ - sudo apt-get install -y libeigen3-dev
+ - sudo apt-get install -y libgsl0-dev
+ - sudo apt-get install -y liblapack-dev
+ - dpkg -l
+ - eval "${MATRIX_EVAL}"
+ - $CXX --version
+script:
+ - eval "${MATRIX_EVAL}"
+ - $CXX --version
+ # build and test debug version
+ - make CXX=$CXX FORCE_DYNAMIC=1 WITH_OPENBLAS=1 DEBUG=1 -j 4
+ - time make check
+ - make clean
+ # build and test release version
+ - make CXX=$CXX FORCE_DYNAMIC=1 WITH_OPENBLAS=1 -j 4 check
+ - time make check