-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
116 lines (108 loc) · 2.83 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
109
110
111
112
113
114
115
language: cpp
sudo: required
dist: trusty
cache:
apt: true
directories:
- $HOME/.cache/spack
pip: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages: &common_deps
- gfortran
- libcppunit-dev
env:
global:
- BUILD: ~/buildTmp
- CXXFLAGS: "-Wall -Wextra -Woverloaded-virtual -Wshadow"
- SPACK_ROOT: $HOME/.cache/spack
- PATH: $PATH:$HOME/.cache/spack/bin
matrix:
include:
# GCC 4.8.5
- env:
- SPLASHPARALLEL=ON SPLASHMPI=ON
compiler: gcc
addons: &mpi_deps
apt:
packages:
- *common_deps
- libopenmpi-dev
- openmpi-bin
- env:
- SPLASHPARALLEL=OFF SPLASHMPI=ON
compiler: gcc
addons: *mpi_deps
- env:
- SPLASHPARALLEL=OFF SPLASHMPI=OFF
compiler: gcc
# Clang 5.0.0
- env:
- SPLASHPARALLEL=ON SPLASHMPI=ON
compiler: clang
addons: *mpi_deps
- env:
- SPLASHPARALLEL=OFF SPLASHMPI=ON
compiler: clang
addons: *mpi_deps
- env:
- SPLASHPARALLEL=OFF SPLASHMPI=OFF
compiler: clang
install:
- SPACK_FOUND=$(which spack >/dev/null && { echo 0; } || { echo 1; })
- if [ $SPACK_FOUND -ne 0 ]; then
mkdir -p $SPACK_ROOT &&
git clone --depth 50 https://github.com/spack/spack.git $SPACK_ROOT &&
cp $TRAVIS_BUILD_DIR/.travis/spack/*.yaml
$SPACK_ROOT/etc/spack/ &&
spack bootstrap;
fi
- source /etc/profile &&
source $SPACK_ROOT/share/spack/setup-env.sh
- COMPILERSPEC="%$CC"
- travis_wait spack install
[email protected]~openssl~ncurses
$COMPILERSPEC
- spack load [email protected] $COMPILERSPEC
- if [ $SPLASHMPI == "ON" ]; then
travis_wait spack install
$COMPILERSPEC &&
spack load [email protected] $COMPILERSPEC;
fi
- if [ $SPLASHPARALLEL == "ON" ]; then
travis_wait spack install
$COMPILERSPEC &&
spack load [email protected]+mpi ^[email protected] $COMPILERSPEC &&
spack load zlib $COMPILERSPEC &&
pip install urllib3[secure] --user &&
pip install h5py --user;
else
travis_wait spack install
$COMPILERSPEC &&
spack load [email protected]~mpi $COMPILERSPEC &&
spack load zlib $COMPILERSPEC &&
pip install urllib3[secure] --user &&
pip install h5py --user;
fi
- spack clean -a
script:
- mkdir -p $HOME/build
- cd $HOME/build
- CXXFLAGS=$CXXFLAGS CXX=$CXX CC=$CC
cmake
-DCMAKE_BUILD_TYPE=Debug
-DSplash_USE_MPI=$SPLASHMPI
-DSplash_USE_PARALLEL=$SPLASHPARALLEL
-DSplash_HAVE_TESTS=ON
-DCMAKE_INSTALL_PREFIX=$HOME/splash-test-install
$TRAVIS_BUILD_DIR
- make -j 2
- CTEST_OUTPUT_ON_FAILURE=1 make test
- make install
- make package
# - dpkg -i libsplash*.deb