Add exttests building to travis config, show generated pkgconfig/cmake modules

This commit is contained in:
Dmitry Marakasov 2016-01-22 19:56:10 +03:00
parent c5578f8daf
commit 44f4cf9f69

View File

@ -26,11 +26,18 @@ before_install:
- export DISPLAY=:99.0 - export DISPLAY=:99.0
script: 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 - 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 - 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 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" - "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: after_success:
- if [ "$BUILD_TYPE" = "Coverage" ]; then coveralls -i SDL2pp; fi - if [ "$BUILD_TYPE" = "Coverage" ]; then coveralls -i SDL2pp; fi