mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vendor: Add vendored dependencies
We use cargo vendor to generate a .cargo/config file and the vendor directory. Vendoring allows us to lock our dependencies and to modify them easily from the top level Cargo.toml. We vendor all dependencies, including the crates.io ones, which allows for network isolated builds. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/kernel-3.10.0-957.el7.x86_64.rpm
|
||||
rpm2cpio kernel-3.10.0-957.el7.x86_64.rpm | cpio -idmv ./boot/vmlinuz-3.10.0-957.el7.x86_64
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
steps:
|
||||
- label: "build-gnu-x86"
|
||||
commands:
|
||||
- cargo build --release
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "fandree/rust-vmm-dev"
|
||||
always-pull: true
|
||||
|
||||
- label: "style"
|
||||
command: cargo fmt --all -- --check
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "fandree/rust-vmm-dev"
|
||||
always-pull: true
|
||||
|
||||
- label: "unittests-gnu-x86"
|
||||
commands:
|
||||
- cargo test
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
privileged: true
|
||||
image: "fandree/rust-vmm-dev"
|
||||
always-pull: true
|
||||
|
||||
- label: "build-gnu-x86-elf"
|
||||
commands:
|
||||
- cargo build --release --features elf
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "fandree/rust-vmm-dev"
|
||||
always-pull: true
|
||||
|
||||
- label: "unittests-gnu-x86-elf"
|
||||
commands:
|
||||
- cargo test --features elf
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
privileged: true
|
||||
image: "fandree/rust-vmm-dev"
|
||||
|
||||
- label: "build-gnu-x86-bzImage"
|
||||
commands:
|
||||
- cargo build --release --features bzImage
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "fandree/rust-vmm-dev"
|
||||
always-pull: true
|
||||
|
||||
- label: "unittests-gnu-x86-bzImage"
|
||||
commands:
|
||||
- cargo test --features bzImage
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
privileged: true
|
||||
image: "fandree/rust-vmm-dev"
|
||||
|
||||
- label: "clippy-x86"
|
||||
commands:
|
||||
- cargo clippy --all -- -D warnings
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "fandree/rust-vmm-dev"
|
||||
always-pull: true
|
||||
|
||||
- label: "coverage-x86"
|
||||
commands:
|
||||
- pytest tests/test_coverage.py
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
platform: x86_64.metal
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
privileged: true
|
||||
image: "fandree/rust-vmm-dev"
|
||||
always-pull: true
|
||||
Reference in New Issue
Block a user