From f1cc1e6b8c94d8d913edc39a1e45f7b5724eae0e Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 9 May 2019 15:48:59 +0100 Subject: [PATCH] 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 --- .travis.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..92e09cc4 --- /dev/null +++ b/.travis.yml @@ -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 +