[CRIU] [PATCH 23/23] CI: add clang build for travis-ci
Kir Kolyshkin
kir at openvz.org
Tue Oct 11 18:47:01 PDT 2016
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
.travis.yml | 1 +
scripts/travis/travis-tests | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 8b8a41a..c4d70e0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,7 @@ services:
- docker
env:
- TR_ARCH=local GCOV=1
+ - TR_ARCH=local GCOV=0 CLANG=1
- TR_ARCH=x86_64 GCOV=1
- TR_ARCH=armv7hf GCOV=1
- TR_ARCH=aarch64 GCOV=1
diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests
index 2a16711..15e8afe 100755
--- a/scripts/travis/travis-tests
+++ b/scripts/travis/travis-tests
@@ -12,6 +12,10 @@ travis_prep () {
apt-get install -qq protobuf-c-compiler libprotobuf-c0-dev libaio-dev \
libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev \
libnl-3-dev gcc-multilib libc6-dev-i386 gdb bash python-protobuf
+ if [ "$CLANG" = "1" ]; then
+ apt-get install -qq clang
+ MAKE_VARS=CC=clang
+ fi
chmod a+x $HOME
}
@@ -21,8 +25,8 @@ ulimit -c unlimited
echo "|`pwd`/test/abrt.sh %P %p %s %e" > /proc/sys/kernel/core_pattern
export GCOV
-make
-make -C test/zdtm
+make $(MAKE_VARS)
+make $(MAKE_VARS) -C test/zdtm
./criu/criu check
./criu/criu check --all || echo $?
--
2.7.4
More information about the CRIU
mailing list