diff options
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 80 |
1 files changed, 48 insertions, 32 deletions
@@ -10,21 +10,18 @@ requires: - make - startup-notification - which - - cmake - cmake-extras - - mate-common - - 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 - - autopoint - clang - clang-tools - g++ @@ -32,7 +29,6 @@ requires: - git - cmake - cmake-extras - - mate-common - dbus - intltool # - libayatana-common-dev @@ -52,16 +48,20 @@ requires: - lcov - gcovr - systemd + - libgeoclue-2-dev + - gsettings-desktop-schemas + - libaccountsservice-dev +# For xsct + - libx11-dev + - libxrandr-dev ubuntu: - - autopoint - clang - clang-tools - g++ - git - cmake - cmake-extras - - mate-common - dbus - intltool # - libayatana-common-dev @@ -82,16 +82,20 @@ requires: - gcovr - systemd - gsettings-ubuntu-schemas + - libgeoclue-2-dev + - gsettings-desktop-schemas + - libaccountsservice-dev +# For xsct + - libx11-dev + - libxrandr-dev ubuntu:focal: - - autopoint - clang - clang-tools - g++ - git - cmake - cmake-extras - - mate-common - dbus - intltool # - libayatana-common-dev @@ -112,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=" @@ -137,24 +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 ./autogen.sh ]; then - - NOCONFIGURE=1 ./autogen.sh - - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum - - elif [ -e ./CMakeLists.txt ]; then + - 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 @@ -173,15 +195,9 @@ build_scripts: - fi - scan-build $CHECKERS --keep-cc -o html-report make - fi - -after_scripts: - - if [ ${BUILD_TYPE} == "scripts" ];then - - XVFB_RUN="$(which xvfb-run || true)" - - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ];then - - if [ -e ./autogen.sh ]; then - - ${XVFB_RUN} make check - - elif [ -e ./CMakeLists.txt ]; then - - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test - - fi + - XVFB_RUN="$(which xvfb-run || true)" + - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ];then + - if [ -e ./CMakeLists.txt ]; then + - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test - fi - fi |