Skip to content

Commit

Permalink
BUILD: Make AppVeyor spit out the CMake unit test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Dec 22, 2016
1 parent 90e0a6e commit 5fc1e90
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ install:
- if not exist libs\%LIBSDL2%.tar.gz cmake -E chdir libs curl -OfsSL https://www.libsdl.org/release/%LIBSDL2%.tar.gz
- if not exist libs\%LIBFT2%-lib.zip cmake -E chdir libs curl -OfsSL http://sourceforge.net/projects/gnuwin32/files/freetype/2.3.5-1/%LIBFT2%-lib.zip
- if not exist libs\%LIBICONV%-lib.zip cmake -E chdir libs curl -OfsSL http://sourceforge.net/projects/gnuwin32/files/libiconv/1.9.2-1/%LIBICONV%-lib.zip
- if not exist libs\%LIBICONV%-bin.zip cmake -E chdir libs curl -OfsSL http://sourceforge.net/projects/gnuwin32/files/libiconv/1.9.2-1/%LIBICONV%-bin.zip
- if not exist libs\%LIBMAD%.tar.gz cmake -E chdir libs curl -OfsSL ftp://ftp.mars.org/pub/mpeg/%LIBMAD%.tar.gz
- if not exist libs\%LIBFAAD%.tar.bz2 cmake -E chdir libs curl -OfsSL http://downloads.sourceforge.net/faac/%LIBFAAD%.tar.bz2
- if not exist libs\%LIBOGG%.tar.xz cmake -E chdir libs curl -OfsSL http://downloads.xiph.org/releases/ogg/%LIBOGG%.tar.xz
Expand All @@ -80,6 +81,9 @@ install:
- cmake -E make_directory libs\%LIBICONV%-lib
- cmake -E chdir libs/%LIBICONV%-lib cmake -E tar xf ../%LIBICONV%-lib.zip

- cmake -E make_directory libs\%LIBICONV%-bin
- cmake -E chdir libs/%LIBICONV%-bin cmake -E tar xf ../%LIBICONV%-bin.zip

- cmake -E chdir libs/xz msbuild windows\xz_win.sln /p:Configuration=Release /p:Platform=%MSBUILD_PLATFORM% /verbosity:quiet
- cmake -E make_directory %LIBXZ_DESTDIR%
- cmake -E make_directory %LIBXZ_DESTDIR%\include
Expand Down Expand Up @@ -139,7 +143,27 @@ build_script:
-DICONV_INCLUDE_DIR=C:/projects/xoreos/libs/%LIBICONV%-lib/include -DICONV_LIBRARIES=C:/projects/xoreos/libs/%LIBICONV%-lib/lib/libiconv.lib
-DSDL2_INCLUDE_DIR=%LIBSDL2_DESTDIR%/include/SDL2 -DSDL2_LIBRARY=%LIBSDL2_DESTDIR%/lib/SDL2.lib
-DOPENAL_INCLUDE_DIR=%LIBOPENAL_DESTDIR%/include -DOPENAL_LIBRARY=%LIBOPENAL_DESTDIR%/lib/OpenAL32.lib
- cmake --build build --target check
- cmake -E make_directory build\bin\Debug
- dir build
- dir build\bin
- dir build\bin\Debug
- copy /y libs\libiconv-1.9.2-1-bin\bin\*.dll build\bin\Debug
- copy /y C:\Libraries\boost_1_59_0\lib32-msvc-14.0\*.dll build\bin\Debug
- copy /y C:\Programs\xz\lib\lzma.dll build\bin\Debug\liblzma.dll
- 'cmake --build build --target check & exit 0'
- dir build
- dir build\bin
- dir build\bin\Debug
- dir /w build\Testing\Temporary
- cat build/Testing/Temporary/*

artifacts:
- path: build\bin\Debug\tests_common_test_util.exe
name: tests_common_test_util
type: zip
- path: build\bin\Debug\tests_common_test_lzma.exe
name: tests_common_test_lzma
type: zip

cache:
- libs
Expand Down

0 comments on commit 5fc1e90

Please sign in to comment.