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