Update CI scripts for integration test post

This commit is contained in:
Philipp Oppermann
2019-01-27 15:46:08 +01:00
parent 6bbd12ba7a
commit 68d09db7c5
2 changed files with 26 additions and 0 deletions

View File

@@ -56,6 +56,18 @@ install:
- 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 ##
# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents # 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents
@@ -76,3 +88,4 @@ test_script:
- bootimage build - bootimage build
- if %target%==x86_64-pc-windows-gnu cargo test - if %target%==x86_64-pc-windows-gnu cargo test
- if %target%==x86_64-pc-windows-msvc cargo test - if %target%==x86_64-pc-windows-msvc cargo test
- bootimage test

View File

@@ -27,6 +27,18 @@ branches:
cache: cache:
directories: directories:
- $HOME/.cargo - $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: before_script:
- rustup component add rust-src - rustup component add rust-src
@@ -36,4 +48,5 @@ before_script:
script: script:
- bootimage build - bootimage build
- cargo test - cargo test
- bootimage test
- cargo cache --autoclean - cargo cache --autoclean