diff --git a/.appveyor.yml b/.appveyor.yml index e2d5851d..71c10ea7 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -55,6 +55,17 @@ install: - set PATH=%PATH%;%USERPROFILE%\.cargo\bin - 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/2018/qemu-w32-setup-20180801.exe" -FileName "qemu-setup.exe" + - if %target%==i686-pc-windows-gnu appveyor DownloadFile "https://qemu.weilnetz.de/w32/2018/qemu-w32-setup-20180801.exe" -FileName "qemu-setup.exe" + - if %target%==x86_64-pc-windows-msvc appveyor DownloadFile "https://qemu.weilnetz.de/w64/2018/qemu-w64-setup-20180801.exe" -FileName "qemu-setup.exe" + - if %target%==x86_64-pc-windows-gnu appveyor DownloadFile "https://qemu.weilnetz.de/w64/2018/qemu-w64-setup-20180801.exe" -FileName "qemu-setup.exe" + - 7z x qemu-setup.exe + - set PATH=%PATH%;C:\Program Files\qemu + - cd "C:\projects\blog-os" ## Build Script ## diff --git a/.travis.yml b/.travis.yml index b2daef83..0d1ba227 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,17 @@ cache: directories: - $HOME/.cargo +addons: + apt: + packages: + - qemu-system-x86 + homebrew: + packages: + - qemu + +install: + - if [ $TRAVIS_OS_NAME = windows ]; then choco install qemu; export PATH="/c/Program Files/qemu:$PATH"; fi + before_script: - rustup component add rust-src llvm-tools-preview - cargo install cargo-xbuild bootimage cargo-cache --debug -Z install-upgrade diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9c81050f..577b7e35 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,26 @@ steps: - script: cargo bootimage displayName: 'Create Bootimage' +- script: sudo apt update && sudo apt install qemu-system-x86 + condition: eq( variables['Agent.OS'], 'Linux' ) + displayName: 'Install QEMU (Linux)' + +- script: | + export HOMEBREW_NO_AUTO_UPDATE=1 + export HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK=1 + export HOMEBREW_NO_INSTALL_CLEANUP=1 + brew install qemu + condition: eq( variables['Agent.OS'], 'Darwin' ) + displayName: 'Install QEMU (macOS)' + +- script: | + choco install qemu --limit-output --no-progress + echo ##vso[task.setvariable variable=PATH;]%PATH%;C:\Program Files\qemu + set PATH=%PATH%;C:\Program Files\qemu + qemu-system-x86_64 --version + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + displayName: 'Install QEMU (Windows)' + - script: cargo xtest displayName: 'Test'