-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
70 lines (61 loc) · 1.75 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
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
- clang
branches:
only:
- master
- travis # To debug .travis.yml
addons:
apt:
sources:
# Boost 1.58
- sourceline: ppa:kzemek/boost
packages:
- libboost1.58-dev
- openmpi-bin
- openmpi-common
- openmpi-doc
- libopenmpi-dev
- libhdf5-serial-dev
install: true
before_script:
- export OMPI_CC=${CC}
- export OMPI_CXX=${CXX}
script:
# Stop on first error
- set -e
# Create directory for installed prerequisites
- export PREREQS_DIR=$(readlink -f $TRAVIS_BUILD_DIR/../installed)
- mkdir $PREREQS_DIR
# Install ALPSCore wo tests
- cd $TRAVIS_BUILD_DIR/..
- git clone https://github.com/ALPSCore/ALPSCore.git ALPSCore.git
- mkdir ALPSCore.build && pushd ALPSCore.build
- |
cmake ../ALPSCore.git \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_INSTALL_PREFIX=$PREREQS_DIR/ALPSCore \
-DALPS_INSTALL_EIGEN=true \
-DTesting=false \
-DENABLE_MPI=ON
- make -j3
- make install
- export ALPSCore_DIR=$PREREQS_DIR/ALPSCore
# Build, test and install ALPSCore/CT-HYB
- cd $TRAVIS_BUILD_DIR/..
- mkdir build
- cd build
- |
cmake ../CT-HYB \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS='-DALPS_GF_DEBUG' \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/installed
- make -j3
- make test
- make install