diff options
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 52 |
1 files changed, 41 insertions, 11 deletions
@@ -10,16 +10,15 @@ requires: - make - startup-notification - which - - cmake - cmake-extras - - dbus - intltool - glib2 -# - libayatana-common - - gobject-introspection -# - liblomiri-url-dispatcher - - vala - # FIXME: add missing build-dependencies + - systemd + - geoclue + - gnome-desktop + - accountsservice +# - libayatana-common (AUR) +# - xsct (AUR) debian: # Useful URL: https://salsa.debian.org/debian-ayatana-team/ayatana-indicator-display @@ -49,6 +48,12 @@ requires: - lcov - gcovr - systemd + - libgeoclue-2-dev + - gsettings-desktop-schemas + - libaccountsservice-dev +# For xsct + - libx11-dev + - libxrandr-dev ubuntu: - clang @@ -77,6 +82,12 @@ requires: - gcovr - systemd - gsettings-ubuntu-schemas + - libgeoclue-2-dev + - gsettings-desktop-schemas + - libaccountsservice-dev +# For xsct + - libx11-dev + - libxrandr-dev ubuntu:focal: - clang @@ -105,6 +116,12 @@ requires: - gcovr - systemd - gsettings-ubuntu-schemas + - libgeoclue-2-dev + - gsettings-desktop-schemas + - libaccountsservice-dev +# For xsct + - libx11-dev + - libxrandr-dev variables: - 'CHECKERS=" @@ -130,23 +147,36 @@ 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 - - rm -Rf libayatana-common-build/ + - + - cd ${START_DIR} + - if [ ! -d xsct-build ]; then + - git clone --depth 1 https://github.com/faf0/sct.git xsct-build + - fi + - cd xsct-build + - make + - make install + - cd - + - rm -Rf xsct-build/ build_scripts: - if [ ${DISTRO_NAME} == "debian" ];then - - export CFLAGS+=" -Wsign-compare -Wunused-parameter" - cppcheck --enable=warning,style,performance,portability,information,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 + - 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 |