blob: df74fb2ce6f32e2bc81388567f0c203d26c1a7e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
language: C++
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
# for the static release version we need the following
# - sudo apt-get install -y gfortran-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 CXX=$CXX FORCE_DYNAMIC=1 WITH_OPENBLAS=1 DEBUG=1 check
- make clean
# build and test release version
- make CXX=$CXX FORCE_DYNAMIC=1 WITH_OPENBLAS=1 -j 4
- time make CXX=$CXX FORCE_DYNAMIC=1 WITH_OPENBLAS=1 check
# build static release (fast-check only)
# - make clean
# - make CXX=$CXX TRAVIS_CI=1 -j 4 fast-check
# - ldd ./bin/gemma
|