Files
xen/scripts/travis-build
T
Andrew Cooper c106e5b039 travis: Enable tools when building with clang
tools now build under clang, so let them be tested.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
2016-04-27 20:32:22 +01:00

28 lines
606 B
Bash
Executable File

#!/bin/bash -ex
$CC --version
# random config or default config
if [[ "${RANDCONFIG}" == "y" ]]; then
make -C xen randconfig
else
make -C xen defconfig
fi
# build up our configure options
cfgargs=()
cfgargs+=("--disable-stubdom") # more work needed into building this
cfgargs+=("--disable-rombios")
cfgargs+=("--enable-docs")
cfgargs+=("--with-system-seabios=/usr/share/seabios/bios.bin")
if [[ "${XEN_TARGET_ARCH}" == "x86_64" ]]; then
cfgargs+=("--enable-tools")
else
cfgargs+=("--disable-tools") # we don't have the cross depends installed
fi
./configure "${cfgargs[@]}"
make dist