sudo: false
language: python
python: 3.6
install:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
- source "$HOME/.cargo/env"
- rustc -V
- cargo -V
- rustup component add rust-src
- rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
- rustup component add rustfmt
- hash cargo-xbuild || cargo install cargo-xbuild
- git branch travis-temp
- git fetch origin ovmf:ovmf
- git checkout ovmf
- git lfs pull
- cp -v x86_64/*.fd .
- git checkout travis-temp
- mv -v *.fd uefi-test-runner
before_script:
- export PATH="$PATH:$HOME/qemu/bin"
- hash qemu-system-x86_64 || bash -e "uefi-test-runner/ci/travis-qemu.sh"
- qemu-system-x86_64 --version
script:
- cd uefi-test-runner
- cargo fmt --all -- --check
- ./build.py clippy
- ./build.py run --headless
cache:
directories:
- $HOME/.cargo/
- $HOME/qemu/
- target/
addons:
apt:
packages:
- bsdtar
notifications:
email: false