File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 10
10
- MPICH_BOT_URL_HEAD="https://github.com/sourceryinstitute/opencoarrays/files/64308/"
11
11
- MPICH_BOT_URL_TAIL="mpich-3.2.yosemite.bottle.1.tar.gz"
12
12
- OSX_PACKAGES="gcc cmake"
13
+ - BUILD_TYPE="CodeCoverage"
13
14
14
15
matrix :
15
16
include :
@@ -101,22 +102,21 @@ before_script:
101
102
script :
102
103
- mkdir cmake-build
103
104
- cd cmake-build
104
- - cmake -DCMAKE_INSTALL_PREFIX:PATH="$HOME/OpenCoarrays" -DCMAKE_Fortran_FLAGS='-ftest-coverage -fprofile-arcs -O0' -DCMAKE_C_FLAGS='-fprofile-arcs -ftest-coverage -O0' ..
105
+ - cmake -DCMAKE_INSTALL_PREFIX:PATH="$HOME/OpenCoarrays" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" ..
105
106
- make -j 4
106
107
- ctest --verbose
107
108
- make install
108
109
- cd ..
109
110
110
111
after_success :
111
112
- find . -name '*.gcno' -print
112
- - find . -name '*.gcda' -print
113
113
- gcov-5 --version
114
114
- bash <(curl -s https://codecov.io/bash) -x $(which gcov-5)
115
115
116
116
notifications :
117
117
webhooks :
118
118
urls :
119
- - $GITTERHOOK_URL
119
+ - https://webhooks.gitter.im/e/93dbafbdf76c1732a623
120
120
on_success : change # options: [always|never|change]
121
121
on_failure : always
122
122
on_start : always
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.0 )
2
2
3
+ # Set the type/configuration of build to perform
4
+ set ( CMAKE_CONFIGURATION_TYPES "Debug" "Release" "MinSizeRel" "RelWithDebInfo" "CodeCoverage" )
5
+ set ( CMAKE_BUILD_TYPE "Release"
6
+ CACHE STRING "Select which configuration to build." )
7
+ set_property ( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
8
+
3
9
#Name project and specify source languages
4
10
project (opencoarrays VERSION 1.2.2 LANGUAGES C Fortran )
5
11
@@ -26,7 +32,11 @@ endif()
26
32
#Report untested Fortran compiler unless explicitly directed to build all examples.
27
33
if ("${CMAKE_Fortran_COMPILER_ID} " MATCHES "GNU" )
28
34
set (gfortran_compiler true )
29
- # add_definitions(-DPREFIX_NAME=_gfortran_caf_)
35
+ # add_definitions(-DPREFIX_NAME=_gfortran_caf_)
36
+ set ( CMAKE_C_FLAGS_CODECOVERAGE "-fprofile-arcs -ftest-coverage -O0"
37
+ CACHE STRING "Code coverage C compiler flags" )
38
+ set ( CMAKE_Fortran_FLAGS_CODECOVERAGE "-fprofile-arcs -ftest-coverage -O0"
39
+ CACHE STRING "Code coverage C compiler flags" )
30
40
else ()
31
41
message (WARNING
32
42
"\n "
You can’t perform that action at this time.
0 commit comments