forked from benson31/Elemental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dont_use_travis.yml
59 lines (52 loc) · 1.78 KB
/
.dont_use_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
sudo: required
dist: trusty
notifications:
email: false
language: generic
env:
global:
- MPI=mpich
- F77=gfortran-5
- PATH=/usr/lib/ccache/:$PATH
# - 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)
matrix:
- CC=gcc-5 CXX=g++-5
- CC=clang-3.8 CXX=clang++-3.8
cache:
directories:
- $HOME/.ccache
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.8 main'
key_url: http://apt.llvm.org/llvm-snapshot.gpg.key
- sourceline: 'ppa:dzombie/ccache'
packages:
- ccache
- gcc-5
- g++-5
- gfortran-5
- libstdc++-5-dev
- clang-3.8
install:
- sudo ln -s /usr/bin/ccache /usr/lib/ccache/clang-3.8
- sudo ln -s /usr/bin/ccache /usr/lib/ccache/clang++-3.8
- echo `which $CC`
- echo `which $CXX`
- sh travis/install-mpi.sh $MPI
- curl https://cmake.org/files/v3.6/cmake-3.6.1-Linux-x86_64.tar.gz | sudo tar -x -z --strip-components 1 -C /usr
script:
- sudo ln -s /usr/bin/ccache /usr/lib/ccache/clang-3.8
- sudo ln -s /usr/bin/ccache /usr/lib/ccache/clang++-3.8
- echo `which $CC`
- echo `which $CXX`
- mkdir build && cd build;
cmake -DEL_TESTS=ON -DEL_EXAMPLES=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC -DCMAKE_Fortran_COMPILER=$F77 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/Install .. ;
if test $? -ne 0; then cat CMakeFiles/CMakeError.log; fi
- make -j2 && sudo make install && sudo ctest --output-on-failure