forked from ScottWales/fortran-build-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (23 loc) · 831 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
# Travis doesn't have a fortran build config, so we'll use c as a base and
# create our own environment
language: c
sudo: required
env:
global:
- FC=gfortran-4.8
- OMPI_FC=${FC}
install:
- sudo apt-add-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- sudo apt-get install gcc-4.8 gfortran-4.8 libgomp1 openmpi-bin libopenmpi-dev
# Use the current stable version (2.1.0)
# See http://sourceforge.net/p/pfunit/mailman/message/31811969
- git clone --depth 1 --branch pfunit_2.1.0 git://git.code.sf.net/p/pfunit/code pfunit-code
- make -C pfunit-code MPI=yes OPENMP=yes
- make install -C pfunit-code INSTALL_DIR=../pfunit
- pip install --user codecov
script:
- make check PFUNIT=pfunit
after_success:
- find .
- codecov --gcov-exec=gcov-4.8