From d345d0a22b8ec1776300f69665159e68dae99607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 26 Sep 2015 21:15:15 +0200 Subject: [PATCH] package/ci: reorganize appveyor.yml. --- package/ci/appveyor.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/package/ci/appveyor.yml b/package/ci/appveyor.yml index b909f4c94..e36726193 100644 --- a/package/ci/appveyor.yml +++ b/package/ci/appveyor.yml @@ -1,28 +1,41 @@ +# kate: indent-width 2; + version: '{branch}-{build}' + branches: only: - master skip_tags: true -os: Visual Studio 2015 shallow_clone: true clone_depth: 1 + +os: Visual Studio 2015 + environment: matrix: - BUILD_STATIC: OFF + install: -- cinst ninja -build_script: - call "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat" +- set PATH=C:/Sys/bin;C:/tools/ninja;%APPVEYOR_BUILD_FOLDER%/openal/bin/Win32;%PATH% + +# Ninja +- cinst ninja + +# OpenAL - appveyor DownloadFile http://kcat.strangesoft.net/openal-soft-1.16.0-bin.zip - 7z x openal-soft-1.16.0-bin.zip - ren openal-soft-1.16.0-bin openal - ren openal\bin\Win32\soft_oal.dll OpenAL32.dll - echo [General] > %APPDATA%/alsoft.ini - echo drivers=null >> %APPDATA%/alsoft.ini + +# SDL2 - appveyor DownloadFile http://www.libsdl.org/release/SDL2-devel-2.0.3-VC.zip - 7z x SDL2-devel-2.0.3-VC.zip - ren SDL2-2.0.3 SDL -- set PATH=C:/Sys/bin;C:/tools/ninja;%APPVEYOR_BUILD_FOLDER%/openal/bin/Win32;%PATH% + +# Corrade - git clone --depth 1 git://github.com/mosra/corrade.git - cd corrade - mkdir build @@ -32,6 +45,8 @@ build_script: - cmake --build . --target install - cd .. - cd .. + +build_script: - mkdir build - cd build - cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/Sys -DCMAKE_PREFIX_PATH="%APPVEYOR_BUILD_FOLDER%/SDL;%APPVEYOR_BUILD_FOLDER%/openal" -DWITH_AUDIO=ON -DWITH_SDL2APPLICATION=ON -DWITH_WINDOWLESSWGLAPPLICATION=ON -DWITH_WGLCONTEXT=ON -DWITH_MAGNUMFONT=ON -DWITH_MAGNUMFONTCONVERTER=ON -DWITH_OBJIMPORTER=ON -DWITH_TGAIMAGECONVERTER=ON -DWITH_TGAIMPORTER=ON -DWITH_WAVAUDIOIMPORTER=ON -DWITH_DISTANCEFIELDCONVERTER=ON -DWITH_FONTCONVERTER=ON -DWITH_MAGNUMINFO=ON -DBUILD_STATIC=%BUILD_STATIC% -DBUILD_TESTS=ON -G Ninja @@ -41,6 +56,7 @@ build_script: - cmake --build . --target install - cd ../Deploy - 7z a ../magnum.zip * + test_script: - cd %APPVEYOR_BUILD_FOLDER%/build - SET fail=0