aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2018-12-18 10:31:51 +0100
committerPetr Vorel <pvorel@suse.cz>2019-01-03 14:27:36 +0100
commit24519c14a2cab50f41637f66e4d7f6f281dd2f1e (patch)
tree95584303343056e0763e162add5aff6aaccdc17d /build.sh
parentc9f0dafa81ff1dbd597164b3fa0545ab4ed49291 (diff)
travis: Use docker based builds
Previously we used 10 Trusty environment (VM) based travis jobs with different gcc and clang versions installed via ubuntu-toolchain-r apt repository. We agreed that testing just different gcc/clang versions isn't enough, it'd be good to test also different glibc and kernel headers, which are on different distros. Therefore now we test 15 jobs based on various distros (Debian, Ubuntu, Fedora, openSUSE, centOS). We still test both gcc/clang, out-of-tree and cross-compilation builds. Disadvantage of this approach is that it's not obvious compiler and libc version. Travis C testing environment implementation prints compiler version ($CC) before installing actually used compiler via docker. Therefore run ver_linux printing version info and print $CC version in build.sh. Implements: #448 Signed-off-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Li Wang <liwang@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 4e8357982..ae3b86ff2 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (c) 2017 Petr Vorel <pvorel@suse.cz>
+# Copyright (c) 2017-2018 Petr Vorel <pvorel@suse.cz>
# Script for travis builds.
#
# TODO: Implement comparison of installed files. List of installed files can
@@ -16,7 +16,7 @@ CONFIGURE_OPTS_IN_TREE="--with-open-posix-testsuite --with-realtime-testsuite"
# TODO: open posix testsuite is currently broken in out-tree-build. Enable it once it's fixed.
CONFIGURE_OPTS_OUT_TREE="--with-realtime-testsuite"
MAKE_OPTS="-j$(getconf _NPROCESSORS_ONLN)"
-CC=
+CC=gcc
build_32()
{
@@ -152,4 +152,12 @@ while getopts "c:ho:p:t:" opt; do
done
cd `dirname $0`
+
+echo "=== ver_linux ==="
+./ver_linux
+echo
+
+echo "=== compiler version ==="
+$CC --version
+
eval build_$build $tree