From faf8521e9d9e13da756120ed0212d94c128523a2 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 14 Jun 2018 08:22:20 +0200 Subject: [PATCH] Install QEMU on travis and appveyor --- .appveyor.yml | 12 ++++++++++++ .travis.yml | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index e53ce814..684be853 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -55,6 +55,18 @@ install: - rustc -vV - cargo -vV + # Install qemu + - echo %cd% + - mkdir "C:\Program Files\qemu" + - cd "C:\Program Files\qemu" + - if %target%==i686-pc-windows-msvc appveyor DownloadFile "https://qemu.weilnetz.de/w32/qemu-w32-setup-20180519.exe" -FileName "qemu-setup.exe" + - if %target%==i686-pc-windows-gnu appveyor DownloadFile "https://qemu.weilnetz.de/w32/qemu-w32-setup-20180519.exe" -FileName "qemu-setup.exe" + - if %target%==x86_64-pc-windows-msvc appveyor DownloadFile "https://qemu.weilnetz.de/w64/qemu-w64-setup-20180519.exe" -FileName "qemu-setup.exe" + - if %target%==x86_64-pc-windows-gnu appveyor DownloadFile "https://qemu.weilnetz.de/w64/qemu-w64-setup-20180519.exe" -FileName "qemu-setup.exe" + - 7z x qemu-setup.exe + - set PATH=%PATH%;C:\Program Files\qemu + - cd "C:\projects\blog-os" + ## Build Script ## # 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents diff --git a/.travis.yml b/.travis.yml index b6b73ab2..29c25fe2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,14 @@ os: cache: cargo +addons: + apt: + packages: + - qemu-system-x86 + +install: + - if [ $TRAVIS_OS_NAME = osx ]; then brew install qemu; fi + before_script: - rustup component add rust-src - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)