diff options
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 57 |
1 files changed, 40 insertions, 17 deletions
@@ -13,9 +13,9 @@ requires: - cmake-extras - dbus - intltool -# - libayatana-common + - libayatana-common - gobject-introspection -# - liblomiri-url-dispatcher +# - lomiri-url-dispatcher - vala - glib2 - libnotify @@ -24,10 +24,11 @@ requires: - evolution-data-server - gsettings-desktop-schemas - properties-cpp -# - ayatana-indicator-messages + - ayatana-indicator-messages - gtk-doc-tools - libaccountsservice # - lomiri-schemas +# - lomiri-sounds debian: # Useful URL: https://salsa.debian.org/debian-ayatana-team/ayatana-ido @@ -40,7 +41,8 @@ requires: - cmake-extras - intltool - libaccounts-glib-dev -# - libayatana-common-dev + - libayatana-common-dev + - ayatana-indicator-common - gobject-introspection - libgirepository1.0-dev - liblomiri-url-dispatcher-dev @@ -52,10 +54,12 @@ requires: - libical-dev - libedataserver1.2-dev - libproperties-cpp-dev -# - libmessaging-menu-dev + - libmessaging-menu-dev - gtk-doc-tools - libaccountsservice-dev - liblomiri-url-dispatcher-dev + - lomiri-schemas + - lomiri-sounds # for the test harness: - libgtest-dev - libdbustest1-dev @@ -69,7 +73,6 @@ requires: - systemd - lcov - gcovr -# - lomiri-schemas ubuntu: - clang @@ -81,10 +84,13 @@ requires: - cmake-extras - intltool - libaccounts-glib-dev -# - libayatana-common-dev + - libayatana-common-dev + - ayatana-indicator-common - gobject-introspection - libgirepository1.0-dev - liblomiri-url-dispatcher-dev + - lomiri-schemas + - lomiri-sounds - valac - libglib2.0-dev - libnotify-dev @@ -93,7 +99,7 @@ requires: - libical-dev - libedataserver1.2-dev - libproperties-cpp-dev -# - libmessaging-menu-dev + - libmessaging-menu-dev - gtk-doc-tools - libaccountsservice-dev # for the test harness: @@ -109,7 +115,6 @@ requires: - systemd - lcov - gcovr -# - lomiri-schemas ubuntu:focal: - clang @@ -122,9 +127,12 @@ requires: - intltool - libaccounts-glib-dev # - libayatana-common-dev + - ayatana-indicator-common - gobject-introspection - libgirepository1.0-dev # - liblomiri-url-dispatcher-dev +# - lomiri-schemas +# - lomiri-sounds - valac - libglib2.0-dev - libnotify-dev @@ -149,7 +157,6 @@ requires: - systemd - lcov - gcovr -# - lomiri-schemas variables: - 'CHECKERS=" @@ -175,7 +182,11 @@ before_scripts: - git clone --depth 1 https://github.com/AyatanaIndicators/libayatana-common.git libayatana-common-build - fi - cd libayatana-common-build - - cmake . -DCMAKE_INSTALL_PREFIX=/usr + - if [ ${DISTRO_NAME} == "debian" ]; then + - cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_LOMIRI_FEATURES=ON + - else + - cmake . -DCMAKE_INSTALL_PREFIX=/usr + - fi - make - make install - cd - @@ -194,7 +205,7 @@ before_scripts: - - cd ${START_DIR} - if [ ! -d lomiri-schemas-build ]; then - - git clone --depth 1 https://gitlab.com/ubports/core/lomiri-schemas.git lomiri-schemas-build + - git clone --depth 1 https://gitlab.com/ubports/core/lomiri-schemas.git lomiri-schemas-build - fi - cd lomiri-schemas-build - cmake . -DCMAKE_INSTALL_PREFIX=/usr @@ -202,18 +213,30 @@ before_scripts: - make install - cd - - rm -Rf lomiri-schemas-build/ + - + - cd ${START_DIR} + - if [ ! -d lomiri-sounds-build ]; then + - git clone --depth 1 https://gitlab.com/ubports/core/lomiri-sounds.git lomiri-sounds-build + - fi + - cd lomiri-sounds-build + - cmake . -DCMAKE_INSTALL_PREFIX=/usr + - make + - make install + - cd - + - rm -Rf lomiri-sounds-build/ build_scripts: - if [ ${DISTRO_NAME} == "debian" ];then - - export CFLAGS+=" -Wsign-compare -Wunused-parameter" - - cppcheck --enable=warning,style,performance,portability,information,missingInclude . + - cppcheck --enable=warning,style,performance,portability,information --suppress=missingInclude . - fi - - if [ -e ./CMakeLists.txt ]; then - - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ]; then - - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON + - if [ ${DISTRO_NAME} == "debian" ]; then + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -DENABLE_TESTS=ON -DENABLE_LOMIRI_FEATURES=ON + - elif [ ${DISTRO_NAME} == "ubuntu" ]; then + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -DENABLE_TESTS=ON - else - - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON - fi - else - exit 1 |