2017-12-20 19:58:56 +01:00
|
|
|
version: '{branch}.{build}'
|
2017-12-20 20:15:23 +01:00
|
|
|
os: Visual Studio 2015
|
2017-12-20 19:58:56 +01:00
|
|
|
clone_depth: 1
|
|
|
|
cache:
|
2018-02-14 20:52:52 +01:00
|
|
|
- c:\usr -> .appveyor.yml
|
2017-12-20 19:58:56 +01:00
|
|
|
before_build:
|
2017-12-20 20:29:41 +01:00
|
|
|
- |-
|
|
|
|
set PREFIX=C:\usr
|
|
|
|
set ARCH=i686-w64-mingw32
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2017-12-20 20:29:41 +01:00
|
|
|
# depends are only fetched where there's no cache
|
|
|
|
- if exist %PREFIX% set DEPENDS=rem
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2017-12-20 20:29:41 +01:00
|
|
|
- |-
|
|
|
|
%DEPENDS% mkdir %PREFIX%\include\SDL2
|
|
|
|
%DEPENDS% mkdir %PREFIX%\lib
|
2017-12-21 08:36:46 +01:00
|
|
|
%DEPENDS% mkdir c:\lua
|
2017-12-20 20:29:41 +01:00
|
|
|
%DEPENDS% cd %TEMP%
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2017-12-20 20:29:41 +01:00
|
|
|
# SDL2
|
|
|
|
- |-
|
|
|
|
%DEPENDS% appveyor DownloadFile http://www.libsdl.org/release/SDL2-devel-2.0.7-mingw.tar.gz
|
|
|
|
%DEPENDS% 7z x SDL2-devel-2.0.7-mingw.tar.gz > nul
|
|
|
|
%DEPENDS% 7z x SDL2-devel-2.0.7-mingw.tar > nul
|
|
|
|
%DEPENDS% copy SDL2-2.0.7\%ARCH%\include\SDL2\* %PREFIX%\include\SDL2 > nul
|
|
|
|
%DEPENDS% copy SDL2-2.0.7\%ARCH%\lib\*.a %PREFIX%\lib > nul
|
|
|
|
%DEPENDS% copy SDL2-2.0.7\%ARCH%\bin\*.dll %PREFIX%\lib > nul
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2017-12-20 20:29:41 +01:00
|
|
|
# SDL2_image
|
|
|
|
- |-
|
|
|
|
%DEPENDS% appveyor DownloadFile http://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.2-mingw.tar.gz
|
|
|
|
%DEPENDS% 7z x SDL2_image-devel-2.0.2-mingw.tar.gz > nul
|
|
|
|
%DEPENDS% 7z x SDL2_image-devel-2.0.2-mingw.tar > nul
|
|
|
|
%DEPENDS% copy SDL2_image-2.0.2\%ARCH%\include\SDL2\* %PREFIX%\include\SDL2 > nul
|
|
|
|
%DEPENDS% copy SDL2_image-2.0.2\%ARCH%\lib\*.a %PREFIX%\lib > nul
|
|
|
|
%DEPENDS% copy SDL2_image-2.0.2\%ARCH%\bin\*.dll %PREFIX%\lib > nul
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2017-12-20 20:29:41 +01:00
|
|
|
# SDL2_ttf
|
|
|
|
- |-
|
|
|
|
%DEPENDS% appveyor DownloadFile https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-2.0.14-mingw.tar.gz
|
|
|
|
%DEPENDS% 7z x SDL2_ttf-devel-2.0.14-mingw.tar.gz > nul
|
|
|
|
%DEPENDS% 7z x SDL2_ttf-devel-2.0.14-mingw.tar > nul
|
|
|
|
%DEPENDS% copy SDL2_ttf-2.0.14\%ARCH%\include\SDL2\* %PREFIX%\include\SDL2 > nul
|
|
|
|
%DEPENDS% copy SDL2_ttf-2.0.14\%ARCH%\lib\*.a %PREFIX%\lib > nul
|
|
|
|
%DEPENDS% copy SDL2_ttf-2.0.14\%ARCH%\bin\*.dll %PREFIX%\lib > nul
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2018-02-14 16:04:40 +01:00
|
|
|
# SDL2_mixer
|
|
|
|
- |-
|
|
|
|
%DEPENDS% appveyor DownloadFile https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.2-mingw.tar.gz
|
|
|
|
%DEPENDS% 7z x SDL2_mixer-devel-2.0.2-mingw.tar.gz > nul
|
|
|
|
%DEPENDS% 7z x SDL2_mixer-devel-2.0.2-mingw.tar > nul
|
|
|
|
%DEPENDS% copy SDL2_mixer-2.0.2\%ARCH%\include\SDL2\* %PREFIX%\include\SDL2 > nul
|
|
|
|
%DEPENDS% copy SDL2_mixer-2.0.2\%ARCH%\lib\*.a %PREFIX%\lib > nul
|
|
|
|
%DEPENDS% copy SDL2_mixer-2.0.2\%ARCH%\bin\*.dll %PREFIX%\lib > nul
|
|
|
|
|
2018-05-11 19:18:45 +02:00
|
|
|
# CMocka
|
2018-05-11 22:14:47 +02:00
|
|
|
- |-
|
|
|
|
%DEPENDS% appveyor DownloadFile https://cmocka.org/files/1.1/cmocka-1.1.0-mingw.zip
|
|
|
|
%DEPENDS% 7z x cmocka-1.1.0-mingw.zip > nul
|
|
|
|
%DEPENDS% copy cmocka-1.1.0\include\* %PREFIX%\include > nul
|
|
|
|
%DEPENDS% copy cmocka-1.1.0\lib\*.a %PREFIX%\lib > nul
|
|
|
|
%DEPENDS% copy cmocka-1.1.0\bin\*.dll %PREFIX%\lib > nul
|
2018-05-18 23:25:10 +02:00
|
|
|
|
|
|
|
# Copy dll's for test exec
|
|
|
|
- |-
|
2018-05-18 23:28:24 +02:00
|
|
|
copy %PREFIX%\lib\SDL2.dll %APPVEYOR_BUILD_FOLDER% > nul
|
2018-05-12 10:38:43 +02:00
|
|
|
copy %PREFIX%\lib\cmocka.dll %APPVEYOR_BUILD_FOLDER% > nul
|
2018-05-11 19:18:45 +02:00
|
|
|
|
2017-12-20 20:31:23 +01:00
|
|
|
# Lua
|
2018-02-14 21:38:27 +01:00
|
|
|
- |-
|
2018-02-14 21:21:12 +01:00
|
|
|
- ps: |
|
|
|
|
If (!(Test-Path -Path "c:\usr\lib\liblua53.a")) {
|
2018-02-14 21:38:27 +01:00
|
|
|
(New-Object Net.WebClient).DownloadFile("https://sourceforge.net/projects/luabinaries/files/5.3.4/Windows%20Libraries/Static/lua-5.3.4_Win32_mingw4_lib.zip/download", "c:\lua\lua-5.3.4_Win32_mingw4_lib.zip")
|
2018-02-14 21:21:12 +01:00
|
|
|
}
|
2017-12-20 20:29:41 +01:00
|
|
|
- |-
|
2018-02-14 21:38:27 +01:00
|
|
|
%DEPENDS% 7z x "c:\lua\lua-5.3.4_Win32_mingw4_lib.zip" -o"c:\lua" > nul
|
|
|
|
%DEPENDS% copy c:\lua\include\*.h %PREFIX%\include > nul
|
|
|
|
%DEPENDS% copy c:\lua\liblua53.a %PREFIX%\lib > nul
|
2017-12-20 19:58:56 +01:00
|
|
|
|
|
|
|
build_script:
|
2017-12-20 20:29:41 +01:00
|
|
|
- |-
|
|
|
|
set Path=C:\MinGW\bin;%Path%
|
|
|
|
cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
del "C:\Program Files\Git\usr\bin\sh.exe"
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2017-12-20 20:29:41 +01:00
|
|
|
# Build
|
|
|
|
- |-
|
|
|
|
cmake --version
|
2017-12-22 15:17:25 +01:00
|
|
|
cmake -DCMAKE_PREFIX_PATH="%PREFIX%" -DCMAKE_C_COMPILER=mingw32-gcc.exe -DCMAKE_MAKE_PROGRAM=mingw32-make.exe -G "MinGW Makefiles"
|
2017-12-20 20:26:57 +01:00
|
|
|
|
2017-12-20 20:29:41 +01:00
|
|
|
- |-
|
2018-05-12 06:47:29 +02:00
|
|
|
mingw32-make
|
2018-05-11 19:18:45 +02:00
|
|
|
ctest -V
|
2018-09-02 13:52:34 +02:00
|
|
|
# mingw32-make package
|
|
|
|
|
|
|
|
# artifacts:
|
|
|
|
# - path: package/breakhack-*.zip
|
|
|
|
# name: breakhack_zip
|
|
|
|
|
|
|
|
# - path: package/breakhack-*.exe
|
|
|
|
# name: breakhack_exe
|
|
|
|
|
|
|
|
# deploy:
|
|
|
|
# provider: GitHub
|
|
|
|
# description: 'Alpha pre-release'
|
|
|
|
# auth_token:
|
|
|
|
# secure: IlMEyGp0AuDI8/MkFAY2KpRr70c3p8eVEMdcqC1EcgyCCbvoMOppBQ0gY44ao0gq
|
|
|
|
# draft: false
|
|
|
|
# prerelease: true
|
|
|
|
# on:
|
|
|
|
# branch: master
|
|
|
|
# appveyor_repo_tag: true
|
2018-05-09 23:07:31 +02:00
|
|
|
|
|
|
|
|