summaryrefslogtreecommitdiffstats
path: root/ci/setup_ci.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/setup_ci.sh')
-rwxr-xr-xci/setup_ci.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/ci/setup_ci.sh b/ci/setup_ci.sh
new file mode 100755
index 0000000..f2e352f
--- /dev/null
+++ b/ci/setup_ci.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+echo "Please run it by jenkins account!"
+cat << EOF | sudo tee /etc/sudoers.d/${USER}
+${USER} ALL = (root) NOPASSWD:ALL
+EOF
+sudo apt-get update > /dev/null
+sudo apt install -y qemu-kvm libvirt-bin 2>1 /dev/null
+echo "Plsease reboot/logout to make effective for libvirt group adding"