mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Add exttests building to travis config, show generated pkgconfig/cmake modules
This commit is contained in:
parent
c5578f8daf
commit
44f4cf9f69
@ -26,11 +26,18 @@ before_install:
|
||||
- export DISPLAY=:99.0
|
||||
|
||||
script:
|
||||
- cmake . -DCMAKE_INSTALL_PREFIX=`pwd`.prefix -DSDL2PP_WITH_WERROR=YES -DSDL2PP_CXXSTD=$CXXSTD -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
||||
- export PREFIX=`pwd`.prefix
|
||||
- cmake . -DCMAKE_INSTALL_PREFIX=$PREFIX -DSDL2PP_WITH_WERROR=YES -DSDL2PP_CXXSTD=$CXXSTD -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
||||
- VERBOSE=1 make && make test && make install
|
||||
- cppcheck -I . --enable=performance,portability,information,missingInclude --error-exitcode=2 SDL2pp # `style' gives false positive in cppcheck 1.61 which comes with trusty
|
||||
- "if make doxygen 2>&1 | grep 'warning:'; then echo 'FATAL: doxygen warnings!'; false; fi"
|
||||
- "if git ls-files --others --exclude-standard | grep ''; then echo 'FATAL: incomplete .gitignore'; false; fi"
|
||||
|
||||
- cat ${TRAVIS_BUILD_DIR}/sdl2pp.pc
|
||||
- cd ${TRAVIS_BUILD_DIR}/exttests/pkg-config && PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig make
|
||||
|
||||
- cat ${TRAVIS_BUILD_DIR}/FindSDL2PP.cmake
|
||||
- cd ${TRAVIS_BUILD_DIR}/exttests/cmake && cmake -DCMAKE_MODULE_PATH=${PREFIX}/share/cmake/Modules . && make
|
||||
|
||||
after_success:
|
||||
- if [ "$BUILD_TYPE" = "Coverage" ]; then coveralls -i SDL2pp; fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user