forked from cloud-hypervisor/rust-hypervisor-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 777 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
dist: xenial
language: rust
rust:
- nightly-2020-03-01
env:
- RUSTFLAGS="-D warnings"
addons:
apt:
update: true
install:
- rustup component add clippy
- rustup component add rustfmt
- rustup component add rust-src
- cargo install cargo-xbuild
- sudo apt-get install -y mtools
- wget https://download.clearlinux.org/releases/28660/clear/clear-28660-kvm.img.xz
- unxz clear-28660-kvm.img.xz
- ./make-test-disks.sh
script:
- cargo xbuild --release --target target.json
- cargo xclippy --target target.json
- cargo clippy --all-targets --all-features
- cargo fmt --all -- --check
- cargo test
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: target/target/release/hypervisor-fw
skip_cleanup: true
on:
tags: true