forked from LBL-EESA/alquimia-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (32 loc) · 1.12 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
# This configuration file is used by Travis CI to build/test TECA.
language: c
os:
- linux
- osx
sudo: required
dist: trusty # Ubuntu 14.04.
# Build/test only on the master branch.
branches:
only:
- master
compiler:
- gcc
install: ./.install-$TRAVIS_OS_NAME-deps.sh
env:
- BUILD_TYPE=Debug PETSC_DIR=$PWD/petsc PETSC_ARCH=petsc_debug
- BUILD_TYPE=Release PETSC_DIR=$PWD/petsc PETSC_ARCH=petsc_opt
script:
- mkdir build && cd build
- ls $PWD
- ls $PETSC_DIR
- ls $PETSC_DIR/$PETSC_ARCH
- ls $PETSC_DIR/$PETSC_ARCH/lib
- export TMPDIR=/tmp
- cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../alquimia-install -DCMAKE_C_COMPILER=`which mpicc` -DCMAKE_CXX_COMPILER=`which mpicxx` -DCMAKE_Fortran_COMPILER=`which mpif90` -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DXSDK_WITH_PFLOTRAN=ON -DTPL_PFLOTRAN_LIBRARIES=$PETSC_DIR/$PETSC_ARCH/externalpackages/git.pflotran/src/pflotran/libpflotranchem.a -DTPL_PFLOTRAN_INCLUDE_DIRS=$PETSC_DIR/$PETSC_ARCH/externalpackages/git.pflotran/src/pflotran
- make -j4
- make test
- make install
- make test_install
- cd ..
after_failure:
- cat build/Testing/Temporary/LastTest.log