-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
117 lines (98 loc) · 2.43 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# http://travis-ci.org/Crompulence/cpl-library
os: linux
sudo: required
language: python
python:
- 2.7
# set up build matrix
matrix:
include:
#Build for 14.04
- dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6 gcc-6 libstdc++-6-dev gfortran-6
# change default compiler to newer gcc-6
env:
- GCC_VERSION=6
- CXX_COMPILER=g++-6
- C_COMPILER=gcc-6
- F_COMPILER=gfortran-6
- MPI=mpich3
- platform=gcc
#Build for 16.04
- dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7 gcc-7 libstdc++-7-dev gfortran-7
env:
- GCC_VERSION=7
- CXX_COMPILER=g++-7
- C_COMPILER=gcc-7
- F_COMPILER=gfortran-7
- MPI=mpich3
- platform=gcc
#Build for 16.04 with openMPI
#- dist: xenial
# compiler: gcc
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - g++-7 gcc-7 libstdc++-7-dev gfortran-7
# env:
# - GCC_VERSION=7
# - CXX_COMPILER=g++
# - C_COMPILER=gcc
# - F_COMPILER=gfortran
# - MPI=openmpi
# - platform=openmpi_gcc
branches:
only:
- master
cache:
directories:
- mpi
before_install:
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- export MPI_BUILD_DIR=$TRAVIS_BUILD_DIR/mpi
- export MPI_DIR=$MPI_BUILD_DIR/$MPI
- sh ./make/travis/travis-install-mpi.sh $MPI $MPI_BUILD_DIR $GCC_VERSION
- sh ./make/travis/travis-install-mpi4py.sh $MPI_DIR
install:
- export PATH=$MPI_DIR/bin:$PATH
- make PLATFORM=$platform BUILD=debug
before_script:
- export PATH=$MPI_DIR/bin:$PATH
- export CPL_PATH=`pwd`
- source $CPL_PATH/SOURCEME.sh
- sudo apt-get -qq update
- sudo apt-get install -qq valgrind
script:
- make test-pytest-initialisation
- make test-examples
- make test-valgrind
- travis_wait 30 make test-pytest-mapping
- make test-gtests
- make test_Dragmodels
# - make test-granular
# - make webdocs-all
after_success:
- echo "Build Success"
#after_failure:
# - which mpif90
# - locate mpif90
# - echo $MPI_BUILD_DIR $CXX $MPI_DIR
# - cat $MPI_BUILD_DIR/config.log
notifications:
email: true