-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add as simple travis script as the basis for the CI with build, clippy and format checks. Signed-off-by: Rob Bradford <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
dist: xenial | ||
language: rust | ||
|
||
rust: | ||
- nightly | ||
|
||
before_script: | ||
- rustup component add clippy | ||
- rustup component add rustfmt | ||
- rustup component add rust-src | ||
- cargo install cargo-xbuild | ||
- sudo apt-get install -y mtools | ||
|
||
addons: | ||
apt: | ||
update: true | ||
|
||
script: | ||
- cargo xbuild --release --target target.json | ||
- cargo xclippy -- -D warnings | ||
- cargo clippy --all-targets --all-features -- -D warnings | ||
- cargo fmt --all -- --check | ||
- wget https://download.clearlinux.org/releases/28660/clear/clear-28660-kvm.img.xz | ||
- unxz clear-28660-kvm.img.xz | ||
- ./make-test-disks.sh | ||
- cargo test | ||
|
||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_OAUTH_TOKEN | ||
file: target/target/release/hypervisor-fw | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
|