-
Notifications
You must be signed in to change notification settings - Fork 61
/
.travis.yml
84 lines (73 loc) · 2 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
os: linux
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- libopenmpi-dev
- openmpi-bin
before_cache:
- cd $TRAVIS_BUILD_DIR/../metis-4.0;
mv libmetis.a ..; rm -rf *; mv ../libmetis.a .
install:
# Save Laghos top directory
- export LAGHOS_DIR=$PWD
# Back out of the directory to install the libraries
- cd ..
# HYPRE (cached 2.11.2 build)
- if [ ! -e hypre-2.11.2/src/hypre/lib/libHYPRE.a ]; then
wget https://computation.llnl.gov/project/linear_solvers/download/hypre-2.11.2.tar.gz --no-check-certificate;
rm -rf hypre-2.11.2;
tar xvzf hypre-2.11.2.tar.gz;
cd hypre-2.11.2/src;
./configure --disable-fortran --without-fei CC=mpicc CXX=mpic++;
make -j3;
cd ../..;
else
echo "Reusing cached hypre-2.11.2/";
fi;
- ln -s hypre-2.11.2 hypre
# METIS (cached 4.0 build)
- if [ ! -e metis-4.0/libmetis.a ]; then
wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/metis-4.0.3.tar.gz;
tar xvzf metis-4.0.3.tar.gz;
make -j3 -C metis-4.0.3/Lib CC="$CC" OPTFLAGS="-O2";
rm -rf metis-4.0;
mv metis-4.0.3 metis-4.0;
else
echo "Reusing cached metis-4.0/";
fi;
# MFEM (master branch)
- if [ ! -e mfem/libmfem.a ]; then
rm -rf mfem;
git clone --single-branch --branch master --depth 1 https://github.com/mfem/mfem.git;
cd mfem;
make -j3 parallel;
make info;
cd ..;
else
echo "Reusing cached mfem";
fi;
# Back to Laghos
- cd $LAGHOS_DIR
branches:
only:
- master
script:
- make -j
- make checks ranks=1
- make checks ranks=2
- make checks ranks=3
- make tests
cache:
directories:
- $TRAVIS_BUILD_DIR/../hypre-2.11.2/src/hypre/lib
- $TRAVIS_BUILD_DIR/../hypre-2.11.2/src/hypre/include
- $TRAVIS_BUILD_DIR/../metis-4.0