mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Install qemu on CI
This commit is contained in:
@@ -55,6 +55,17 @@ install:
|
|||||||
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
||||||
- rustc -vV
|
- rustc -vV
|
||||||
- cargo -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 ##
|
## Build Script ##
|
||||||
|
|
||||||
|
|||||||
11
.travis.yml
11
.travis.yml
@@ -28,6 +28,17 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- $HOME/.cargo
|
- $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:
|
before_script:
|
||||||
- rustup component add rust-src llvm-tools-preview
|
- rustup component add rust-src llvm-tools-preview
|
||||||
- cargo install cargo-xbuild bootimage cargo-cache --debug -Z install-upgrade
|
- cargo install cargo-xbuild bootimage cargo-cache --debug -Z install-upgrade
|
||||||
|
|||||||
@@ -61,6 +61,26 @@ steps:
|
|||||||
- script: cargo bootimage
|
- script: cargo bootimage
|
||||||
displayName: 'Create 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
|
- script: cargo xtest
|
||||||
displayName: 'Test'
|
displayName: 'Test'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user