From 540dc9643efc866af6e7040634c9d7a17ca6c5b0 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周六, 05 12月 2015 21:40:52 +0800 Subject: [PATCH] Fix error queue and resolve #67 --- .travis.yml | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 22147d8..bd59bd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,31 @@ +language: c addons: apt: packages: - libcunit1-dev - - libcunit1-dev:i386 + - clang - 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 + - tar -xvf /tmp/cunit.tar.bz2 + - mv CUnit-2.1-3 CUnit + - cd CUnit + - CFLAGS="-m32" LDFLAGS="-m32" ./bootstrap + - make + - export LD_LIBRARY_PATH=$PWD/CUnit/Sources/.libs/:$LD_LIBRARY_PATH + - cd .. + script: - - make test - - CFLAGS="-m32" LDFLAGS="-m32" make clean test + - make + - CC=clang CFLAGS="-g -O0 -fsanitize=address" LDFLAGS="-g -fsanitize=address" make clean test + - CFLAGS="-m32" LDFLAGS="-m32 -L$PWD/CUnit/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 CUnit -e libscpi/obj/shared --gcov-options '\-lp' -- Gitblit v1.9.1