uefi 0.3.2

Safe and easy-to-use wrapper for building UEFI apps
Documentation
sudo: false

# We need a newer version of Python
language: python

# Need Python for build script
python: 3.6

install:
  # Manually install nightly Rust
  - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
  - source "$HOME/.cargo/env"
  - rustc -V
  - cargo -V
  # Required by cargo-xbuild
  - rustup component add rust-src
  # Required by cargo-xclippy
  - rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
  # For checking the code's formatting
  - rustup component add rustfmt
  # Try installing cargo-xbuild if it's not already installed
  - hash cargo-xbuild || cargo install cargo-xbuild
  # Save the current branch
  - git branch travis-temp
  # Checkout the firmware branch
  - git fetch origin ovmf:ovmf
  - git checkout ovmf
  # Download it with Git LFS
  - git lfs pull
  # Copy it to the local directory
  - cp -v x86_64/*.fd .
  # Checkout the original repo back
  - git checkout travis-temp
  # Move the firmware files to the right directory
  - mv -v *.fd uefi-test-runner

before_script:
  # Try using cached QEMU install
  - export PATH="$PATH:$HOME/qemu/bin"
  # Build QEMU from source if not installed
  - hash qemu-system-x86_64 || bash -e "uefi-test-runner/ci/travis-qemu.sh"
  - qemu-system-x86_64 --version

script:
  - cd uefi-test-runner
  # Check that formatting is OK
  - 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