os-test-framework/appveyor.yml
2018-10-01 21:08:37 +02:00

67 lines
2.1 KiB
YAML

max_jobs: 1
shallow_clone: true
image: Visual Studio 2015
environment:
some_secure_variable:
secure: base64ab
install:
- cmd: set PATH=C:\cygwin\bin;C:\cygwin\usr\bin;%PATH%
# nasm
- cmd: curl -O https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/win32/nasm-2.13.03-win32.zip
- cmd: unzip nasm-2.13.03-win32.zip
- cmd: set PATH=%cd%\nasm-2.13.03\;%PATH%
# gdisk
- cmd: mkdir gdisk
- cmd: cd gdisk
- cmd: curl -o gdisk.zip https://freefr.dl.sourceforge.net/project/gptfdisk/gptfdisk/1.0.4/gdisk-binaries/gdisk-windows-1.0.4.zip
- cmd: unzip gdisk.zip
- cmd: ln -s gdisk64.exe gdisk.exe
- cmd: cd ..
- cmd: set PATH=%cd%\gdisk\;%PATH%
# mkisofs,zip,ImageMagick
- cmd: C:\cygwin\setup-x86.exe --no-replaceonreboot --no-shortcuts --quiet-mode --root c:\cygwin --packages mkisofs,genisoimage,zip,ImageMagick,xorg-server-extra,datefudge
- cmd: C:\cygwin\bin\find C:\cygwin -iname "import*"
- cmd: C:\cygwin\bin\find C:\cygwin -iname "convert*"
# mtools
- cmd: curl -O ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.18.tar.gz
- cmd: tar -zxf mtools-4.0.18.tar.gz
- cmd: cd mtools-4.0.18
- cmd: sh configure --build=x86_64-pc-windows
- cmd: make
- cmd: cd ..
- cmd: set PATH=%cd%\mtools-4.0.18\;%PATH%
# Print versions and other tool information
- cmd: echo %cd%
- cmd: uname -s
- cmd: uname -r
- cmd: uname -v
- cmd: uname -m
- cmd: uname -o
- cmd: make --version
- cmd: nasm -v
- cmd: mtools --version
- cmd: mtools & exit 0
- cmd: sh -c "mkisofs --version"
- cmd: zip --help
- cmd: unzip -h
- cmd: sh -c "(printf | gdisk) || true; echo"
- cmd: sh -c "import --version"
# Xvfb is installed via cygwin package xorg-server-extra
- cmd: Xvfb -help
- cmd: ssh -V
- cmd: echo TODO install gnu make and dependencies
build_script:
- cmd: make COMMIT_TIMESTAMP_ISO_8601="%APPVEYOR_REPO_COMMIT_TIMESTAMP%" all
test_script:
- cmd: cmd /C os.bat exit
- cmd: sh os.bat exit
# The next command actually runs the script as a MS-DOS batch file
- cmd: sh -c './os.bat exit'
#artifacts:
# - path: path/to/file_or_directory_to_zip