forked from Argonne-National-Laboratory/PIPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (37 loc) · 1.65 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
language: cpp
sudo: required
dist: xenial
env:
matrix:
- TEST_WITH_MA27=0 OPENMPI=1 MPICH=0
- TEST_WITH_MA27=1 OPENMPI=1 MPICH=0
- TEST_WITH_MA27=0 OPENMPI=0 MPICH=1
- TEST_WITH_MA27=1 OPENMPI=0 MPICH=1
addons:
ssh_known_hosts: xgitlab.cels.anl.gov
before_install:
- openssl aes-256-cbc -K $encrypted_03afd2aa4132_key -iv $encrypted_03afd2aa4132_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
- git clone [email protected]:schanen/ma57.git
- if [ $TEST_WITH_MA27 -eq "0" ]; then cp ./ma57/ma57-3.9.0.tar.gz ./ThirdPartyLibs/MA57; fi
# travis doesn't let me download openmpi from open-mpi.org
- if [ $OPENMPI -eq "1" ]; then cp ./ma57/openmpi-2.1.0.tar.gz .; fi
- if [ $TEST_WITH_MA27 -eq "1" ]; then cp ./ma57/ma27-1.0.0.tar.gz ./ThirdPartyLibs/MA27; fi
- sudo apt-get update -qq
- sudo apt-get install -y libblas-dev liblapack-dev
- if [ $MPICH -eq "1" ]; then sudo apt-get install -y libmpich-dev mpich; fi
# compile openmpi because ubuntu 14.04 openmpi package is outdated
- if [ $OPENMPI -eq "1" ]; then sudo apt-get install -y gfortran libopenmpi-dev openmpi-bin openmpi-common; fi
- if [ $OPENMPI -eq "1" ]; then tar xzf openmpi-2.1.0.tar.gz; fi
- if [ $OPENMPI -eq "1" ]; then cd openmpi-2.1.0; ./configure -q --prefix=$PWD/../local --enable-mpi-cxx; fi
- if [ $OPENMPI -eq "1" ]; then make -j4; fi
- if [ $OPENMPI -eq "1" ]; then make install; cd .. ; fi
- if [ $OPENMPI -eq "1" ]; then export PATH=$PWD/local/bin:$PATH; fi
install:
- ./build_3rdparty.sh $TEST_WITH_MA27
- ./build_pips.sh
script:
- cd build
- make test