diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 93da647..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,108 +0,0 @@ -version: '{branch}.{build}' -os: Visual Studio 2015 -clone_depth: 1 -cache: - - c:\freshmingw - - c:\usr -before_build: - - |- - set PREFIX=C:\usr - set MINGW32=C:\freshmingw - set ARCH=i686-w64-mingw32 - - - git submodule update --init --recursive - - # depends are only fetched where there's no cache - - if exist %PREFIX% set DEPENDS=rem - - - |- - %DEPENDS% mkdir %PREFIX%\include\SDL2 - %DEPENDS% mkdir %PREFIX%\lib - %DEPENDS% cd %TEMP% - - # SDL2 - - |- - %DEPENDS% appveyor DownloadFile http://www.libsdl.org/release/SDL2-devel-2.0.3-mingw.tar.gz - %DEPENDS% 7z x SDL2-devel-2.0.3-mingw.tar.gz > nul - %DEPENDS% 7z x SDL2-devel-2.0.3-mingw.tar > nul - %DEPENDS% copy SDL2-2.0.3\%ARCH%\include\SDL2\* %PREFIX%\include\SDL2 > nul - %DEPENDS% copy SDL2-2.0.3\%ARCH%\lib\*.a %PREFIX%\lib > nul - %DEPENDS% copy SDL2-2.0.3\%ARCH%\bin\*.dll %PREFIX%\lib > nul - - # SDL2_image - - |- - %DEPENDS% appveyor DownloadFile http://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.0-mingw.tar.gz - %DEPENDS% 7z x SDL2_image-devel-2.0.0-mingw.tar.gz > nul - %DEPENDS% 7z x SDL2_image-devel-2.0.0-mingw.tar > nul - %DEPENDS% copy SDL2_image-2.0.0\%ARCH%\include\SDL2\* %PREFIX%\include\SDL2 > nul - %DEPENDS% copy SDL2_image-2.0.0\%ARCH%\lib\*.a %PREFIX%\lib > nul - %DEPENDS% copy SDL2_image-2.0.0\%ARCH%\bin\*.dll %PREFIX%\lib > nul - - # SDL2_ttf - - |- - %DEPENDS% appveyor DownloadFile https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-2.0.12-mingw.tar.gz - %DEPENDS% 7z x SDL2_ttf-devel-2.0.12-mingw.tar.gz > nul - %DEPENDS% 7z x SDL2_ttf-devel-2.0.12-mingw.tar > nul - %DEPENDS% copy SDL2_ttf-2.0.12\%ARCH%\include\SDL2\* %PREFIX%\include\SDL2 > nul - %DEPENDS% copy SDL2_ttf-2.0.12\%ARCH%\lib\*.a %PREFIX%\lib > nul - %DEPENDS% copy SDL2_ttf-2.0.12\%ARCH%\bin\*.dll %PREFIX%\lib > nul - - # Fixup SDL bug - - |- - %DEPENDS% appveyor DownloadFile https://hg.libsdl.org/SDL/raw-file/e217ed463f25/include/SDL_platform.h - %DEPENDS% copy SDL_platform.h %PREFIX%\include\SDL2 - - # Newer mingw is required, as older mingw32 does not support std::thread - - |- - %DEPENDS% appveyor DownloadFile "http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win32/Personal Builds/mingw-builds/4.9.3/threads-posix/dwarf/i686-4.9.3-release-posix-dwarf-rt_v4-rev1.7z/download" - %DEPENDS% 7z x download -o%MINGW32% > nul - -build_script: - - |- - set Path=%MINGW32%\mingw32\bin;%Path% - cd %APPVEYOR_BUILD_FOLDER% - del "C:\Program Files\Git\usr\bin\sh.exe" - - # Build - - |- - cmake --version - cmake -DCMAKE_PREFIX_PATH="%PREFIX%" -DCMAKE_C_COMPILER=%ARCH%-gcc.exe -DCMAKE_CXX_COMPILER=%ARCH%-c++.exe -DCMAKE_MAKE_PROGRAM=mingw32-make.exe -DCMAKE_VERBOSE_MAKEFILE=ON -DSTANDALONE=ON -DCMAKE_INSTALL_PREFIX="C:\hoverboard" -G "MinGW Makefiles" - - - |- - mingw32-make - mingw32-make install >nul - - # Add needed libs - - |- - copy %MINGW32%\mingw32\bin\libgcc_s_dw2-1.dll C:\hoverboard - copy %MINGW32%\mingw32\bin\libwinpthread-1.dll C:\hoverboard - copy %MINGW32%\mingw32\bin\libstdc*.dll C:\hoverboard - copy %PREFIX%\lib\SDL2.dll C:\hoverboard - copy %PREFIX%\lib\SDL2_image.dll C:\hoverboard - copy %PREFIX%\lib\SDL2_ttf.dll C:\hoverboard - copy %PREFIX%\lib\libfreetype-6.dll C:\hoverboard - copy %PREFIX%\lib\zlib1.dll C:\hoverboard - copy %PREFIX%\lib\libpng16-16.dll C:\hoverboard - - # Create package - - if "%APPVEYOR_REPO_TAG%"=="true" set PACKAGE=hoverboard-%APPVEYOR_REPO_TAG_NAME%-win32.zip - - if "%APPVEYOR_REPO_TAG%"=="false" set PACKAGE=hoverboard-%APPVEYOR_BUILD_VERSION%.zip - - - |- - cd C:\ - 7z a %PACKAGE% hoverboard >nul - appveyor PushArtifact %PACKAGE% - -deploy: -- provider: GitHub - tag: $(APPVEYOR_REPO_TAG_NAME) - release: $(APPVEYOR_REPO_TAG_NAME) - description: (FILL ME) - auth_token: - secure: Y1kamw3GXbTN3wqzi2gC18Wu/+gw4YONH71Ct1rR9AsOERS97SJeWs5/NcIMXN/x - artifact: /.*\.zip/ - draft: true - prerelease: false - on: - branch: master - appveyor_repo_tag: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8c499be..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: cpp -os: linux -dist: bionic -compiler: - - gcc - - clang -before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev -script: - - cmake -DCMAKE_CXX_FLAGS=-Werror -DCMAKE_INSTALL_PREFIX=prefix -DSYSTEMWIDE=ON . - - make - - make install diff --git a/README.md b/README.md index c44623b..e5ae59c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # hoverboard-sdl -[![Build Status](https://travis-ci.org/AMDmi3/hoverboard-sdl.svg?branch=master)](https://travis-ci.org/AMDmi3/hoverboard-sdl) -[![Build status](https://ci.appveyor.com/api/projects/status/61fqs0x9furnnw6h/branch/master?svg=true)](https://ci.appveyor.com/project/AMDmi3/hoverboard-sdl) ![Downloads](https://img.shields.io/github/downloads/AMDmi3/hoverboard-sdl/total.svg) [![Packaging status](https://repology.org/badge/tiny-repos/hoverboard.svg)](https://repology.org/metapackage/hoverboard)