mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update CI scripts for integration test post
This commit is contained in:
@@ -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
|
||||
|
||||
13
.travis.yml
13
.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
|
||||
|
||||
Reference in New Issue
Block a user