osx_image: xcode10.1\r
env: XCODE="true" CHECK="true"\r
\r
+# run coveralls\r
+ - os: linux\r
+ dist: xenial\r
+ compiler: gcc\r
+ env: CHECK="true"\r
+ before_install:\r
+ - sudo pip install cpp-coveralls\r
+ script:\r
+ - mkdir build\r
+ - cd build\r
+ - cmake ..\r
+ - make\r
+ - make test\r
+ - cd -\r
+ after_success:\r
+ - coveralls --include arraylist.c --include arraylist.h --include json_object.c --include json_object.h --include json_object_iterator.c --include json_object_iterator.h --include json_object_private.h --include json_pointer.c --include json_pointer.h --include json_tokener.c --include json_tokener.h --include json_util.c --include json_util.h --include json_visit.c --include json_visit.h --include linkhash.c --include linkhash.h --include printbuf.c --include printbuf.h --include random_seed.c --include strerror_override.c\r
+\r
# allow_failures:\r
# - os: osx\r
\r
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
if ("${DISABLE_WERROR}" STREQUAL "OFF")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
endif()