Jan Breuer
2015-11-26 cca8a549714c291512daaa9850cbfa1c73623b54
Add code coverage support
2个文件已修改
13 ■■■■■ 已修改文件
.gitignore 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.travis.yml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore
@@ -31,3 +31,8 @@
/nbproject/
*.bak
# Code coverage files
*.gcno
*.gcda
*.gcov
.travis.yml
@@ -1,3 +1,4 @@
language: c
addons:
  apt:
    packages:
@@ -6,6 +7,9 @@
    - gcc-multilib
sudo: false
before_install:
  - pip install --user cpp-coveralls
before_script:
  - wget http://downloads.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2 -O /tmp/cunit.tar.bz2
@@ -20,3 +24,7 @@
    - make
    - CC=clang CFLAGS="-g -O0 -fsanitize=address" LDFLAGS="-g -fsanitize=address" make clean test
    - CFLAGS="-m32" LDFLAGS="-m32 -L$PWD/CUnit-2.1-3/CUnit/Sources/.libs/" make clean test
  - LDFLAGS="-lgcov" CFLAGS="-fprofile-arcs -ftest-coverage" make clean all test
after_success:
  - coveralls -b libscpi/ -e libscpi/test -e examples -e libscpi/obj/shared --gcov-options '\-lp'