-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
88 lines (76 loc) · 2.08 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
os: linux
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
# sources:
# - ubuntu-toolchain-r-test
packages:
# - gcc-7
# - g++-7
# MPICH
- mpich
- libmpich-dev
# OpenMPI
# - libopenmpi-dev
# - openmpi-bin
before_cache:
- cd $TRAVIS_BUILD_DIR/../metis-4.0;
mv libmetis.a ..; rm -rf *; mv ../libmetis.a .
install:
# Save Remhos top directory
- export REMHOS_DIR=$PWD
# Back out of the directory to install the libraries
- cd ..
# HYPRE (cached 2.10.0b build)
- if [ ! -e hypre-2.10.0b/src/hypre/lib/libHYPRE.a ]; then
wget https://computation.llnl.gov/project/linear_solvers/download/hypre-2.10.0b.tar.gz --no-check-certificate;
rm -rf hypre-2.10.0b;
tar xvzf hypre-2.10.0b.tar.gz;
cd hypre-2.10.0b/src;
./configure --disable-fortran --without-fei CC=mpicc CXX=mpic++;
make -j3;
cd ../..;
else
echo "Reusing cached hypre-2.10.0b/";
fi;
- ln -s hypre-2.10.0b 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 --depth 1 https://github.com/mfem/mfem.git;
cd mfem;
make -j3 parallel;
make info;
cd ..;
else
echo "Reusing cached mfem";
fi;
# Back to Remhos
- cd $REMHOS_DIR
branches:
only:
- master
script:
- make -j
- cd autotest
- ./test.sh 2
- diff --report-identical-files out_test.dat out_baseline.dat
cache:
directories:
- $TRAVIS_BUILD_DIR/../hypre-2.10.0b/src/hypre/lib
- $TRAVIS_BUILD_DIR/../hypre-2.10.0b/src/hypre/include
- $TRAVIS_BUILD_DIR/../metis-4.0