Hoefully test on appveyor and fix travis

This commit is contained in:
Linus Probert 2018-05-11 19:18:45 +02:00
parent 5b44ee7cf3
commit a23bff5eca
2 changed files with 11 additions and 2 deletions

View File

@ -53,6 +53,14 @@ before_build:
%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
# CMocka
- |-
%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
# Lua
- |-
- ps: |
@ -76,7 +84,8 @@ build_script:
cmake -DCMAKE_PREFIX_PATH="%PREFIX%" -DCMAKE_C_COMPILER=mingw32-gcc.exe -DCMAKE_MAKE_PROGRAM=mingw32-make.exe -G "MinGW Makefiles"
- |-
mingw32-make breakhack
mingw32-make
ctest -V
mingw32-make package
artifacts:

View File

@ -28,7 +28,7 @@ before_install:
install:
- sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
- sudo apt-get install -y cmake cmake-data lua5.2 liblua5.2-dev libcmocka-dev
- sudo apt-get install -y cmake cmake-data lua5.2 liblua5.2-dev libcmocka0 libcmocka-dev
script:
- mkdir build