forked from ComputationalRadiationPhysics/libSplash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (62 loc) · 1.99 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
language: cpp
branches:
except:
- axel
compiler:
- gcc
- clang
env:
global:
- BUILD=~/buildTmp
- SRC=$TRAVIS_BUILD_DIR
matrix:
- SPLASHPARALLEL=ON SPLASHMPI=ON
- SPLASHPARALLEL=OFF SPLASHMPI=ON
- SPLASHPARALLEL=OFF SPLASHMPI=OFF
script:
- cd $BUILD
# compile libSplash and install
- cmake -DTOOLS_MPI=$SPLASHMPI $SRC
- make package
- sudo dpkg -i libsplash*.deb
- ls -hal /usr/share/pyshared/
- rm -rf $BUILD/*
# compile examples/
- cmake -DWITH_MPI=$SPLASHMPI $SRC/examples
- make
- rm -rf $BUILD/*
# compile and run tests/
- cmake -DWITH_MPI=$SPLASHMPI $SRC/tests
- make
after_script:
- $SRC/tests/run_tests $BUILD
- $SRC/tests/run_parallel_tests $BUILD
before_script:
- uname -r
- lsb_release -a
- echo "$SRC"
- ls -hal $SRC
- ls -hal /usr/include
# PPA providing hdf5 >= 1.8.6 and OpenMPI >= 1.5.1
# -> remove legacy hdf5 and mpi packages/deps from travis
- sudo apt-get remove -qq libhdf5* libopenmpi* openmpi-bin
- echo "yes" | sudo add-apt-repository ppa:james-page/openmpi
- echo "yes" | sudo add-apt-repository ppa:axel-huebl/libsplash
- sudo apt-get update -qq
- sudo apt-cache policy
- sudo apt-cache policy libhdf5-serial-dev
- sudo apt-cache policy libopenmpi-dev
- if [ "$SPLASHMPI" == "ON" ]; then export APTMPI="libopenmpi-dev openmpi-bin"; fi
- if [ "$SPLASHPARALLEL" == "ON" ]; then export APTHDF5="libhdf5-openmpi-7 libhdf5-openmpi-dev"; else export APTHDF5="libhdf5-serial-dev"; fi
- sudo dpkg --get-selections
- sudo apt-get install -qq -f libcppunit-dev
- sudo apt-get install -qq -f libboost-program-options-dev
- sudo apt-get -t o=LP-PPA-james-page-openmpi install -q -f $APTMPI
- sudo apt-get -t o=LP-PPA-axel-huebl-libsplash install -q -f $APTHDF5
- sudo apt-get install python-numpy cython
- sudo -H pip install --upgrade pip
# numpy and cython should be already satisfied
- export HDF5_DIR=/usr
- export C_INCLUDE_PATH=/usr/lib/openmpi/include
- pip install --user h5py
- mkdir -p $BUILD ~/lib