-
Notifications
You must be signed in to change notification settings - Fork 110
/
.travis.yml
99 lines (86 loc) · 3.08 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
sudo: required
dist: trusty
notifications:
email: false
language: generic
env:
global:
- MPI=mpich
# - MPI=openmpi
# Open MPI is disabled until there is a way to install a reasonably recent
# version, as 1.6.5 is known to have bugs that lead to incorrect behavior in
# Elemental for complex data despite attempts at performing soft casts
# to twice as many entries of real data (with the exact cause unfortunately
# currently unknown)
- PATH=/usr/lib/ccache:$PATH
cache:
directories:
- $HOME/.ccache
matrix:
include:
# GCC 5
- env: CC=gcc-5 CXX=g++-5 F77=gfortran-5
addons: { apt: {
sources: [ "ubuntu-toolchain-r-test", { sourceline: "ppa:dzombie/ccache" } ],
packages: [ "ccache", "gcc-5", "g++-5", "gfortran-5", "libstdc++-5-dev" ]
} }
# GCC 8
- env: CC=gcc-8 CXX=g++-8 F77=gfortran-8
addons: { apt: {
sources: [ "ubuntu-toolchain-r-test", { sourceline: "ppa:dzombie/ccache" } ],
packages: [ "ccache", "gcc-8", "g++-8", "gfortran-8", "libstdc++-8-dev" ]
} }
# Clang 3.8
- env: CC=clang-3.8 CXX=clang++-3.8 F77=gfortran-5
addons: { apt: {
sources: [ "ubuntu-toolchain-r-test", { sourceline: "ppa:dzombie/ccache" } ],
packages: [ "ccache", "gcc-5", "g++-5", "gfortran-5", "libstdc++-5-dev", "clang-3.8" ]
} }
# Clang 4.0
- env: CC=clang-4.0 CXX=clang++-4.0 F77=gfortran-8
addons: { apt: {
sources: [ "ubuntu-toolchain-r-test", "llvm-toolchain-trusty-4.0", { sourceline: "ppa:dzombie/ccache" } ],
packages: [ "ccache", "gcc-8", "g++-8", "gfortran-8", "libstdc++-8-dev", "clang-4.0" ]
} }
# Clang 6.0
- env: CC=clang-6.0 CXX=clang++-6.0 F77=gfortran-8
addons: { apt: {
sources: [ "ubuntu-toolchain-r-test", "llvm-toolchain-trusty-6.0", { sourceline: "ppa:dzombie/ccache" } ],
packages: [ "ccache", "gcc-8", "g++-8", "gfortran-8", "libstdc++-8-dev", "clang-6.0" ]
} }
allow_failures:
- env: CC=clang-6.0 CXX=clang++-6.0 F77=gfortran-8 # compiler crash
install:
- sh travis/install-mpi.sh $MPI
before_script:
# ccache symlinks are created in "before_script:" section because they are lost after "install:" section
# manually add symlinks to versioned clang because of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867705
- >
sudo update-ccache-symlinks &&
for cc in /usr/bin/clang-[0-9\.]* /usr/bin/clang++-[0-9\.]* ; do
if [ -e "$cc" ]; then
lnk=$(basename "$cc");
if [ ! -e "/usr/lib/ccache/$lnk" ]; then
sudo ln -s /usr/bin/ccache "/usr/lib/ccache/$lnk";
fi;
fi;
done
- nproc
- echo `which $CC`
- echo `which $CXX`
- echo `which $F77`
- cmake --version
- ctest --version
script:
# - set -o errexit
- ccache -s
- >
mkdir build && cd build &&
(
cmake -DEL_TESTS=ON -DEL_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/Install .. ||
(cat CMakeFiles/CMakeError.log; travis_terminate 1)
) &&
make -j$(nproc) &&
make install &&
ctest --output-on-failure &&
ccache -s