-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
75 lines (64 loc) · 2.21 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
language: python
python:
- 2.7
sudo: false
cache:
apt: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- gfortran-6
- cmake
- cmake-data
before_install:
- pip install codecov
- git submodule update --init --recursive
- travis_retry wget --quiet https://support.hdfgroup.org/ftp/HDF5/current18/src/hdf5-1.8.18.tar;
- travis_retry wget --no-check-certificate https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.2.tar.gz;
install:
- export FC=gfortran-6
- export CC=gcc-6
- export GCOV=$(which gcov-6)
- $FC --version
- $GCOV --version
##################
## Install OMPI ##
##################
- cd $TRAVIS_BUILD_DIR
- tar zxf openmpi-1.10.2.tar.gz
- cd openmpi-1.10.2
- ./configure --prefix=$TRAVIS_BUILD_DIR/openmpi > /dev/null
- travis_wait 20 make -j 8 --silent > /dev/null
- make install > /dev/null 2>&1
##################
## Install HDF5 ##
##################
- cd $TRAVIS_BUILD_DIR
- tar xf hdf5-1.8.18.tar
- cd hdf5-1.8.18
- mkdir $TRAVIS_BUILD_DIR/hdf5
- ./configure --prefix=$TRAVIS_BUILD_DIR/hdf5 -q --enable-parallel --enable-fortran --enable-fortran2003 --with-default-api-version=v18 --enable-silent-rules FC=$TRAVIS_BUILD_DIR/openmpi/bin/mpif90 CC=$TRAVIS_BUILD_DIR/openmpi/bin/mpicc > /dev/null
- travis_wait 20 make -j 8 --silent > /dev/null
- make install > /dev/null 2>&1
##################
- export PATH=$TRAVIS_BUILD_DIR/hdf5:$TRAVIS_BUILD_DIR/openmpi/bin:$TRAVIS_BUILD_DIR/openmpi/lib:$TRAVIS_BUILD_DIR/openmpi/include:$TRAVIS_BUILD_DIR/hdf5:$TRAVIS_BUILD_DIR/hdf5/bin:$TRAVIS_BUILD_DIR/hdf5/lib:$TRAVIS_BUILD_DIR/hdf5/include:$PATH
- echo $PATH
- cmake --version
before_script:
- cd $TRAVIS_BUILD_DIR;
- mkdir build
- cd build
- cmake -DCMAKE_Fortran_COMPILER=$TRAVIS_BUILD_DIR/hdf5/bin/h5pfc -DXH5For_ENABLE_TESTS=ON -DXH5For_ENABLE_EXAMPLES=ON -DCOVERAGE_COMMAND=$GCOV -DXH5For_PRINT_IO_TIMES=ON -DXH5For_FORCE_FLUSH=ON -DMPIEXEC_PREFLAGS=--tag-output ..
script:
- ctest -VV -T Start -T Build -T Test #-T Coverage
after_success:
- find . -name '*.gcno' -print
- bash <(curl -s https://codecov.io/bash) -x $GCOV
after_script:
- cd ..
- rm -rf build
os:
- linux