-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml
68 lines (64 loc) · 1.98 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
language: cpp
sudo: false
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- openmpi-bin
- libopenmpi-dev
- g++-6
- clang-4.0
env:
matrix:
# Coverage test
- CALI_TRAVIS_TESTNAME=coverage
CALI_CC=gcc
CALI_CXX=g++
WITH_MPI=Off
WITH_GOTCHA=On
COVERAGE=On
# Test with mpi using GOTCHA.
# Currently disabled because for whatever reason the libcaliper-mpi.so constructor isn't run
# as it is supposed to. Works in every other environment so far :-(
# - CALI_TRAVIS_TESTNAME=mpi-gotcha
# CALI_CC=gcc
# CALI_CXX=g++
# WITH_MPI=On
# WITH_GOTCHA=On
# Test with mpi without GOTCHA (using PMPI)
# (Here the libcaliper-mpi.so constructor runs. Go figure.)
- CALI_TRAVIS_TESTNAME=mpi-pmpi
CALI_CC=gcc
CALI_CXX=g++
WITH_MPI=On
WITH_GOTCHA=Off
# Build test with clang
- CALI_TRAVIS_TESTNAME=clang-4
CALI_CC=clang-4.0
CALI_CXX=clang++-4.0
WITH_MPI=Off
WITH_GOTCHA=On
# Build test with gcc-6
- CALI_TRAVIS_TESTNAME=gcc-6
CALI_CC=gcc-6
CALI_CXX=g++-6
WITH_MPI=Off
WITH_GOTCHA=On
script:
- mkdir build-${CALI_TRAVIS_TESTNAME}
- cd build-${CALI_TRAVIS_TESTNAME}
- CMAKE_OPTS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On"
- CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_C_COMPILER=${CALI_CC} -DCMAKE_CXX_COMPILER=${CALI_CXX}"
- CMAKE_OPTS="${CMAKE_OPTS} -DWITH_LIBPFM=Off"
- CMAKE_OPTS="${CMAKE_OPTS} -DWITH_PAPI=Off"
- CMAKE_OPTS="${CMAKE_OPTS} -DWITH_MPI=${WITH_MPI} -DWITH_MPIT=Off"
- CMAKE_OPTS="${CMAKE_OPTS} -DWITH_GOTCHA=${WITH_GOTCHA}"
- if [[ -n "${COVERAGE}" ]] ; then CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_C_FLAGS=-coverage -DCMAKE_CXX_FLAGS=-coverage"; fi
- cmake ${CMAKE_OPTS} ..
- make -j4
- make test || (cat Testing/Temporary/LastTest.log; exit 1)
after_success:
- if [[ -n "${COVERAGE}" ]] ; then bash <(curl -s https://codecov.io/bash) ; fi