CI: improve stability
-- Added apt-get update before any apt-get command in shell script on VM
Necessary if the cloud image is a bit out of sync
-- Added VM memory parameter when creating VM
Necessary for cppcheck build
-- Aligned some scripts with develop branch
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -60,6 +60,7 @@ then
|
||||
fi
|
||||
|
||||
VM_TEMPLATE=ci-
|
||||
VM_MEMORY=2048
|
||||
JOB_NAME=XX
|
||||
BUILD_ID=XX
|
||||
VM_NAME=ci-enb-usrp
|
||||
@@ -98,6 +99,7 @@ case $key in
|
||||
;;
|
||||
-v4)
|
||||
VM_NAME=ci-cppcheck
|
||||
VM_MEMORY=8192
|
||||
shift
|
||||
;;
|
||||
-v5)
|
||||
@@ -130,6 +132,7 @@ case $key in
|
||||
;;
|
||||
cppcheck)
|
||||
VM_NAME=ci-cppcheck
|
||||
VM_MEMORY=8192
|
||||
;;
|
||||
gnb-usrp)
|
||||
VM_NAME=ci-gnb-usrp
|
||||
@@ -176,7 +179,7 @@ echo "VM_NAME = $VM_NAME"
|
||||
echo "############################################################"
|
||||
echo "Creating VM ($VM_NAME) on Ubuntu Cloud Image base"
|
||||
echo "############################################################"
|
||||
uvt-kvm create $VM_NAME release=xenial --memory 2048 --cpu 4 --unsafe-caching --template ci-scripts/template-host.xml
|
||||
uvt-kvm create $VM_NAME release=xenial --memory $VM_MEMORY --cpu 4 --unsafe-caching --template ci-scripts/template-host.xml
|
||||
echo "Waiting for VM to be started"
|
||||
uvt-kvm wait $VM_NAME --insecure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user