-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
57 lines (39 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
language: bash
sudo: required
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libblas-dev liblapack-dev gfortran libboost-dev mpi-default-bin mpi-default-dev libgmp-dev libopenmpi-dev
install:
- mkdir PEITS_root
- cd PEITS_root
- git clone -b maint https://bitbucket.org/petsc/petsc petsc
- cd petsc
- git checkout 8695de0
- ./configure --prefix=$TRAVIS_BUILD_DIR/PEITS_root/petscBUILD --with-x=0 --with-debugging=0 -CFLAGS="-O3 -DNDEBUG -ffast-math" --with-parmetis=1 --download-parmetis=yes --with-hypre=1 --download-hypre=yes --with-superlu_dist=1 --download-superlu_dist=yes --with-mumps=1 --download-mumps=yes --with-ml=1 --download-ml=yes --with-metis=1 --download-metis=yes --download-scalapack=yes --download-blacs=yes && make all test && make install
- cd ..
- wget http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.83.tar.gz
- tar xf zoltan_distrib_v3.83.tar.gz --warning=no-unknown-keyword
- mkdir Zoltan_v3.83/BUILD_DIR
- cd Zoltan_v3.83/BUILD_DIR
- ../configure --prefix=$TRAVIS_BUILD_DIR/PEITS_root/Zoltan_v3.83/BUILD_DIR --with-parmetis --with-parmetis-incdir="$TRAVIS_BUILD_DIR/PEITS_root/petscBUILD/include" --with-parmetis-libdir="$TRAVIS_BUILD_DIR/PEITS_root/petscBUILD/lib"
- make everything
- make install
script:
- cd $TRAVIS_BUILD_DIR
- mv config.opts_example config.opts
- PETSCPATH=$TRAVIS_BUILD_DIR/PEITS_root/petscBUILD
- ZOLTANPATH=$TRAVIS_BUILD_DIR/PEITS_root/Zoltan_v3.83/BUILD_DIR
- sed -i "s,/home/username/PEITS_root/petscBUILD,$PETSCPATH,g" config.opts
- sed -i "s,/home/username/PEITS_root/Zoltan_v3.8/BUILD_DIR,$ZOLTANPATH,g" config.opts
- sh INSTALL
- cd tests
- sh ./initial_test.sh
- cd ../data
# now download nn mesh and try it
- wget https://zenodo.org/record/1313709/files/NNmesh_small.tar.gz
- tar xf NNmesh_small.tar.gz
- cp parameter parameterBU
- cp standardparams standardparamsBU
- cd ../tests
- travis_wait 30 sh ./nn_test.sh
- travis_wait 30 sh ./nn_test.sh