diff --git a/.appveyor.yml b/.appveyor.yml index d9b56030..b5ca909c 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -56,6 +56,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/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 ## # 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents @@ -76,3 +88,4 @@ test_script: - bootimage build - if %target%==x86_64-pc-windows-gnu cargo test - if %target%==x86_64-pc-windows-msvc cargo test + - bootimage test diff --git a/.travis.yml b/.travis.yml index 8819d85b..4308d582 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,18 @@ branches: cache: directories: - $HOME/.cargo + - $HOME/Library/Caches/Homebrew + +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 @@ -36,4 +48,5 @@ before_script: script: - bootimage build - cargo test + - bootimage test - cargo cache --autoclean