-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
108 lines (98 loc) · 2.97 KB
/
.travis.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
sudo: false
dist: trusty
language: cpp
compiler:
- gcc
- clang
env:
matrix:
- CMAKE_BUILD_TYPE=Debug
- CMAKE_BUILD_TYPE=Release
- Aboria_USE_EIGEN=on
- Aboria_USE_EIGEN=on Aboria_USE_H2LIB=on Aboria_USE_OPENMP=on
- Aboria_USE_EIGEN=on Aboria_USE_H2LIB=on Aboria_USE_OPENMP=on CMAKE_BUILD_TYPE=Release
global:
- ENCRYPTION_LABEL: "b90db56f7413"
- COMMIT_AUTHOR_EMAIL: "[email protected]"
matrix:
include:
# Documentation
- compiler: gcc
env: Travis_UPDATE_DOC=on CMAKE_BUILD_TYPE=Release Aboria_BUILD_DOCUMENTATION=on
# Coverage
- compiler: gcc
env: Aboria_COVERAGE=on Aboria_USE_EIGEN=on Aboria_USE_H2LIB=on Aboria_USE_OPENMP=on
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
#- libopenmpi-dev
- libboost1.55-all-dev
#- libboost1.55-serialization-dev
#- libboost1.55-tools-dev
- gcc-5
- g++-5
- clang-3.8
# cant find this package
- libiomp-dev
- doxygen
- xsltproc
- docbook-xml
- docbook-xsl
- texlive-latex-base
# install h2lib dependencies
- liblapack-dev
- gfortran
before_install:
# install coveralls
- if [ "$Aboria_COVERAGE" == "on" ]; then
pip install --user cpp-coveralls;
fi
# install Eigen
- if [ "$Aboria_USE_EIGEN" == "on" ]; then
wget http://bitbucket.org/eigen/eigen/get/3.3.1.tar.gz;
tar -xvf 3.3.1.tar.gz;mv eigen*/Eigen .;
mv eigen*/unsupported .;
fi
# install H2Lib
- if [ "$Aboria_USE_H2LIB" == "on" ]; then
git clone -b community https://github.com/H2Lib/H2Lib.git ;
cd H2Lib ;
cp -f ../third-party/H2Lib/options.inc . ;
make ;
cd .. ;
fi
before_script:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
- export OMP_NUM_THREADS=3
- uname -a
- printenv
- clang++ --version 2>&1 | grep clang
- g++ --version 2>&1 | grep g++
- gcov --version | grep gcov
- grep "#define BOOST_VERSION " /usr/include/boost/version.hpp
- doxygen --version
- if [ "$Travis_UPDATE_DOC" == "on" ]; then cp doc/user-config.jam ~; fi
script:
- cmake -DAboria_COVERAGE=$Aboria_COVERAGE
-DAboria_USE_EIGEN=$Aboria_USE_EIGEN
-DAboria_USE_H2LIB=$Aboria_USE_H2LIB
-DH2Lib_ROOT=./H2Lib
-DEIGEN3_INCLUDE_DIR=.
-DAboria_USE_OPENMP=$Aboria_USE_OPENMP
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE
-DAboria_BUILD_DOCUMENTATION=$Aboria_BUILD_DOCUMENTATION
.
- make
- ctest --output-on-failure
after_success:
- if [ "$Aboria_COVERAGE" == "on" ]; then coveralls -t iMaUSA3Acf6gvM53zh91NYaJizXQqanKz -e cxxtest -i src --gcov /usr/bin/gcov-4.8 --gcov-options '\-lp'; fi
- if [ "$Travis_UPDATE_DOC" == "on" ] && [ "$TRAVIS_BRANCH" == 'master' ]; then source update_doc.sh; fi
notifications:
email:
recipients: