Install QEMU on travis and appveyor

This commit is contained in:
Philipp Oppermann
2018-06-14 08:22:20 +02:00
parent e585d72216
commit faf8521e9d
2 changed files with 20 additions and 0 deletions

View File

@@ -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

View File

@@ -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)