mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00

It's not that large (even smaller than our example .wav file), has liberal license and saves us from complexity of finding system font. Later I may consider installing it as a default font to make ttf features of SDL2pp usable out-of-box without need for extra fonts.
20 lines
721 B
YAML
20 lines
721 B
YAML
language: cpp
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
env:
|
|
- SDL2PP_CXXSTD=c++11
|
|
- SDL2PP_CXXSTD=c++1y
|
|
before_install:
|
|
- sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots
|
|
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -qq cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev g++-4.8 cppcheck
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
|
|
script:
|
|
- cmake . -DSDL2PP_ENABLE_GUI_TEST=OFF -DCMAKE_INSTALL_PREFIX=`pwd`/_prefix -DSDL2PP_WITH_WERROR=YES -DSDL2PP_CXXSTD=$SDL2PP_CXXSTD
|
|
- make
|
|
- make test
|
|
- make install
|
|
- cppcheck -I . --enable=style,performance,portability,information,missingInclude --error-exitcode=2 SDL2pp
|