From 139d1e959364eccb361f7363815d386274bad8f0 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周五, 13 11月 2015 08:25:23 +0800
Subject: [PATCH] Add SCPI_ResultXYZ unit tests for basic types

---
 .travis.yml |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 85f7f4e..5938476 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,22 @@
 addons:
   apt:
     packages:
-    - cunit
     - libcunit1-dev
+    - clang
+    - gcc-multilib
 
 sudo: false
 
+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
+  - cd CUnit-2.1-3
+  - CFLAGS="-m32" LDFLAGS="-m32" ./bootstrap
+  - make
+  - export LD_LIBRARY_PATH=$PWD/CUnit/Sources/.libs/:$LD_LIBRARY_PATH
+  - cd ..
+
 script:
-    - make test
+    - 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

--
Gitblit v1.9.1