Skip to content

Commit f1cc1e6

Browse files
committed
build: Add travis configuration
Add as simple travis script as the basis for the CI with build, clippy and format checks. Signed-off-by: Rob Bradford <[email protected]>
1 parent ed242a2 commit f1cc1e6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.travis.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
dist: xenial
2+
language: rust
3+
4+
rust:
5+
- nightly
6+
7+
before_script:
8+
- rustup component add clippy
9+
- rustup component add rustfmt
10+
- rustup component add rust-src
11+
- cargo install cargo-xbuild
12+
- sudo apt-get install -y mtools
13+
14+
addons:
15+
apt:
16+
update: true
17+
18+
script:
19+
- cargo xbuild --release --target target.json
20+
- cargo xclippy -- -D warnings
21+
- cargo clippy --all-targets --all-features -- -D warnings
22+
- cargo fmt --all -- --check
23+
- wget https://download.clearlinux.org/releases/28660/clear/clear-28660-kvm.img.xz
24+
- unxz clear-28660-kvm.img.xz
25+
- ./make-test-disks.sh
26+
- cargo test
27+
28+
deploy:
29+
provider: releases
30+
api_key: $GITHUB_OAUTH_TOKEN
31+
file: target/target/release/hypervisor-fw
32+
skip_cleanup: true
33+
on:
34+
tags: true
35+

0 commit comments

Comments
 (0)