From 68df56209775cac2653640a42cf67dec5d689680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sun, 29 Jul 2018 16:30:34 +0200 Subject: [PATCH] appveyor: take screenshot --- appveyor.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index d7e0a16..315f6ce 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,6 +9,10 @@ environment: install: - cmd: set PATH=C:\cygwin\bin;C:\cygwin\usr\bin;%PATH% + # screenshot-cmd https://code.google.com/archive/p/screenshot-cmd/ + - cmd: mkdir screenshot-cmd + - cmd: curl -o screenshot-cmd\screenshot-cmd.exe https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/screenshot-cmd/screenshot-cmd.exe + - cmd: set PATH=%cd%\screenshot-cmd\;%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 @@ -54,7 +58,7 @@ install: # Xvfb is installed via cygwin package xorg-server-extra - cmd: Xvfb -help - cmd: ssh -V - - cmd: echo TODO install gnu make and dependencies + - cmd: screenshot-cmd -h & exit 0 build_script: - cmd: make COMMIT_TIMESTAMP_ISO_8601="%APPVEYOR_REPO_COMMIT_TIMESTAMP%" all @@ -64,6 +68,11 @@ test_script: - cmd: sh os.bat exit # The next command actually runs the script as a MS-DOS batch file - cmd: sh -c './os.bat exit' + - cmd: screenshot-cmd -o screenshot.png + - cmd: identify screenshot.png #artifacts: -# - path: path/to/file_or_directory_to_zip \ No newline at end of file +# - path: path/to/file_or_directory_to_zip + +artifacts: + - path: screenshot.png \ No newline at end of file