diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-12 16:22:26 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-12 17:09:30 +0200 |
commit | 173f104d15f5bd7478eed303c43e8426fb6d67a8 (patch) | |
tree | 0dfc1c8c031490d2f3ad3d0605ac0e764b669e42 | |
parent | b2214f2cbe1a7cd1b104ff32fc121cd84862b9a6 (diff) | |
download | libayatana-indicator-173f104d15f5bd7478eed303c43e8426fb6d67a8.tar.gz libayatana-indicator-173f104d15f5bd7478eed303c43e8426fb6d67a8.tar.bz2 libayatana-indicator-173f104d15f5bd7478eed303c43e8426fb6d67a8.zip |
Travis CI: Drop autotools support, build and test GTK+-2.0 and GTK+-3.0 flavours.
-rw-r--r-- | .build.yml | 47 |
1 files changed, 33 insertions, 14 deletions
@@ -104,17 +104,35 @@ build_scripts: - cppcheck --enable=warning,style,performance,portability,information,missingInclude . - fi - - - if [ -e ./CMakeLists.txt ]; then + - mkdir build-gtk3/ + - cd build-gtk3/ + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON -DFLAVOUR_GTK3=ON + - else + - scan-build $CHECKERS cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DFLAVOUR_GTK3=ON + - fi + - + - if [ $CPU_COUNT -gt 1 ]; then - if [ ${DISTRO_NAME} == "debian" ];then - - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON - - else - - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make -j $CPU_COUNT + - make clean - fi - - elif [ -e ./autogen.sh ]; then - - NOCONFIGURE=1 ./autogen.sh - - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum + - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT + - else + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make + - make clean + - fi + - scan-build $CHECKERS --keep-cc -o html-report make + - fi + - cd ../ + - + - mkdir build-gtk2/ + - cd build-gtk2/ + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON -DFLAVOUR_GTK2=ON - else - - exit 1 + - scan-build $CHECKERS cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DFLAVOUR_GTK2=ON - fi - - if [ $CPU_COUNT -gt 1 ]; then @@ -130,16 +148,17 @@ build_scripts: - fi - scan-build $CHECKERS --keep-cc -o html-report make - fi + - cd ../ after_scripts: - if [ ${BUILD_TYPE} == "scripts" ];then - XVFB_RUN="$(which xvfb-run || true)" - if [ ${DISTRO_NAME} == "debian" ];then - - if [ -e ./CMakeLists.txt ]; then - - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test - - elif [ -e ./autogen.sh ]; then - - ${XVFB_RUN} make check - - cat tests/test-suite.log - - fi + - cd build-gtk3/ + - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test + - cd ../ + - cd build-gtk2/ + - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test + - cd ../ - fi - fi |