forked from barbagroup/PetIBM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 918 Bytes
/
.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
# file: .travis.yml
# author: Olivier Mesnard (mesnardo@gwu.edu)
# brief: PetIBM Travis CI.
os: linux
language: cpp
compiler: gcc
before_install:
- sudo apt-get install gfortran
install:
- export PETIBM_DIR=$PWD
# install PETSc-3.5.2
- cd ..
- wget "http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.5.2.tar.gz" -O /tmp/petsc-lite-3.5.2.tar.gz
- tar xfz /tmp/petsc-lite-3.5.2.tar.gz
- cd petsc-3.5.2
- export PETSC_DIR=$PWD
- export PETSC_ARCH=arch-dbg
- ./configure --PETSC_ARCH=$PETSC_ARCH --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-fblaslapack --download-mpich
- make all
script:
# build PetIBM
- cd $PETIBM_DIR
- mkdir build
- cd build
- $PETIBM_DIR/configure --prefix=$PWD CC=$PETSC_DIR/$PETSC_ARCH/bin/mpicc CXX=$PETSC_DIR/$PETSC_ARCH/bin/mpicxx CXXFLAGS="-std=c++0x"
- make all
- make check
- make install
notifications:
email: false