continuous-build: run QA tests on travis-ci
This commit is contained in:
5
QA.sh
5
QA.sh
@ -34,10 +34,13 @@ fi
|
|||||||
if [ "$KERNEL" = "" ]; then
|
if [ "$KERNEL" = "" ]; then
|
||||||
KERNEL=jehanne.32bit
|
KERNEL=jehanne.32bit
|
||||||
fi
|
fi
|
||||||
|
if [ "$NCPU" = "" ]; then
|
||||||
|
NCPU=1
|
||||||
|
fi
|
||||||
|
|
||||||
cd $KERNDIR
|
cd $KERNDIR
|
||||||
read -r cmd <<EOF
|
read -r cmd <<EOF
|
||||||
$kvmdo qemu-system-x86_64 -s -cpu Opteron_G1 -smp 1 -m 2048 $kvmflag \
|
$kvmdo qemu-system-x86_64 -s -cpu Opteron_G1 -smp $NCPU -m 2048 $kvmflag \
|
||||||
-serial stdio \
|
-serial stdio \
|
||||||
--nographic \
|
--nographic \
|
||||||
--monitor /dev/null \
|
--monitor /dev/null \
|
||||||
|
@ -39,6 +39,9 @@ if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
|
|||||||
build all
|
build all
|
||||||
|
|
||||||
if [ "$TRAVIS_BUILD_DIR" != "" ]; then
|
if [ "$TRAVIS_BUILD_DIR" != "" ]; then
|
||||||
|
echo "Run QA checks"
|
||||||
|
echo /qa/check | NCPU=2 KERNEL=workhorse.32bit KERNDIR=$JEHANNE/hacking/bin/ runqemu
|
||||||
|
|
||||||
echo "Move cross-compiling toolchain to $JEHANNE/tmp/toolchain for Travis caches"
|
echo "Move cross-compiling toolchain to $JEHANNE/tmp/toolchain for Travis caches"
|
||||||
if [ ! -d "$JEHANNE/tmp/toolchain" ]; then
|
if [ ! -d "$JEHANNE/tmp/toolchain" ]; then
|
||||||
mkdir $JEHANNE/tmp/toolchain
|
mkdir $JEHANNE/tmp/toolchain
|
||||||
|
Reference in New Issue
Block a user