From e7d3092dd149ce455eaa934cc63104b6273302f5 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周一, 22 2月 2016 08:19:09 +0800 Subject: [PATCH] Add all possible units from IEEE488.2 to address some points of #26 --- .travis.yml | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 254e25c..bd59bd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,31 @@ +language: c addons: apt: packages: - libcunit1-dev + - 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