2019-05-09 15:10:48 +02:00
|
|
|
language: rust
|
|
|
|
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- rustup component add clippy
|
|
|
|
- rustup component add rustfmt
|
|
|
|
|
|
|
|
script:
|
2019-09-21 02:21:54 +08:00
|
|
|
- cargo rustc --bin cloud-hypervisor -- -D warnings
|
|
|
|
- cargo rustc --bin cloud-hypervisor --no-default-features --features "pci" -- -D warnings
|
|
|
|
- cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,acpi" -- -D warnings
|
|
|
|
- cargo rustc --bin cloud-hypervisor --no-default-features --features "mmio" -- -D warnings
|
|
|
|
- cargo rustc --bin vhost_user_net -- -D warnings
|
|
|
|
- cargo rustc --bin vhost_user_net --no-default-features --features "pci" -- -D warnings
|
|
|
|
- cargo rustc --bin vhost_user_net --no-default-features --features "pci,acpi" -- -D warnings
|
|
|
|
- cargo rustc --bin vhost_user_net --no-default-features --features "mmio" -- -D warnings
|
2019-05-09 15:10:48 +02:00
|
|
|
- cargo test
|
|
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
2019-08-16 14:41:31 +01:00
|
|
|
- find . -name "*.rs" | xargs rustfmt --check
|
2019-07-24 12:25:15 +01:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
|
|
file: target/release/cloud-hypervisor
|
|
|
|
skip_cleanup: true
|
|
|
|
draft: true
|
|
|
|
on:
|
|
|
|
tags: true
|