diff options
author | Robert Tari <robert@tari.in> | 2021-05-14 17:25:41 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-05-14 17:25:41 +0200 |
commit | 763acdea57d43c9a5dd063879a050c76b72c26dc (patch) | |
tree | 0dfc1c8c031490d2f3ad3d0605ac0e764b669e42 /.build.yml | |
parent | 025c376068f63d8c2aa5899a3c0b1b827370da28 (diff) | |
parent | 173f104d15f5bd7478eed303c43e8426fb6d67a8 (diff) | |
download | libayatana-indicator-763acdea57d43c9a5dd063879a050c76b72c26dc.tar.gz libayatana-indicator-763acdea57d43c9a5dd063879a050c76b72c26dc.tar.bz2 libayatana-indicator-763acdea57d43c9a5dd063879a050c76b72c26dc.zip |
Merge branch 'sunweaver-pr/bring-back-gtk2-builds'
Attributes GH PR #44: https://github.com/AyatanaIndicators/libayatana-indicator/pull/44
Diffstat (limited to '.build.yml')
-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 |