-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
75 lines (66 loc) · 1.89 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
#based on ALPSCore/CT-HYB .travis.yml
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
- clang
branches:
only:
- master
- GPLv3
#- travis # To debug .travis.yml
addons:
apt:
sources:
# Boost 1.58
- sourceline: ppa:kzemek/boost
packages:
- libboost1.58-dev
- libboost-program-options1.58-dev
- libboost-program-options1.58.0
- openmpi-bin
- openmpi-common
- openmpi-doc
- libopenmpi-dev
- libhdf5-serial-dev
- gsl-bin
- libgsl0-dev
install: true
before_script:
- export OMPI_CC=${CC}
- export OMPI_CXX=${CXX}
- export LD_LIBRARY_PATH=/usr/local/lib/:${LD_LIBRARY_PATH}
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 and test Maxent
- cd $TRAVIS_BUILD_DIR/..
- mkdir build
- cd build
- |
cmake ../Maxent \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/installed \
- make -j3
- make test