File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,24 @@ pipeline{
3636 }
3737 stage (' Configure' ) {
3838 steps {
39- sh " meson build -D driver_ch=enabled -D driver_qemu=disabled -D driver_openvz=disabled -D driver_esx=disabled -D driver_vmware=disabled -D driver_lxc=disabled -D driver_libxl=disabled -D driver_vbox=disabled"
39+ sh " meson build -D driver_ch=enabled -D driver_qemu=disabled -D driver_openvz=disabled -D driver_esx=disabled -D driver_vmware=disabled -D driver_lxc=disabled -D driver_libxl=disabled -D driver_vbox=disabled -D system=true "
4040 }
4141 }
42- stage (' Build' ) {
42+ stage (' Build & Install ' ) {
4343 steps {
4444 sh " ninja -C build"
45+ sh " sudo ninja -C build install"
46+ sh " sudo ldconfig"
47+ }
48+ }
49+ stage (' Install Rust' ) {
50+ steps {
51+ sh " curl https://sh.rustup.rs -sSf | sh -s -- -y"
52+ }
53+ }
54+ stage (' Build & Install Cloud Hypervisor' ) {
55+ steps {
56+ sh " ch_integration_tests/build_ch.sh"
4557 }
4658 }
4759 }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -x -e
3+ source $HOME /.cargo/env
4+
5+ CH_VERSION=" master"
6+ git init cloud-hypervisor
7+ pushd cloud-hypervisor
8+ git remote add origin https://github.com/cloud-hypervisor/cloud-hypervisor
9+ git fetch origin --depth 1 " $CH_VERSION "
10+ git checkout " $CH_VERSION "
11+ cargo build
12+ sudo cp target/debug/cloud-hypervisor /usr/local/bin
13+ sudo setcap cap_net_admin+ep /usr/local/bin/cloud-hypervisor
14+ popd
You can’t perform that action at this time.
0 commit comments