From 66ef230073adeadfe00a88ef25a8d97dcfe71263 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 15:40:19 +0200 Subject: Travis CI: Intial draft of CI builds. --- .build.yml | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 43 ++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 .build.yml create mode 100644 .travis.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..f8f10df --- /dev/null +++ b/.build.yml @@ -0,0 +1,133 @@ +######################################################### +# THE FOLLOWING LINES IS USED BY docker-build +########################################################## +requires: + archlinux: + # Useful URL: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ayatana-indicator-messages + - clang + - gcc + - git + - make + - startup-notification + - which + - cmake + - cmake-extras + - mate-common + - libayatana-indicator + - gobject-introspection + - gtk-doc + - intltool + - accountsservice + - vala + + debian: + # Useful URL: https://salsa.debian.org/debian-ayatana-team/ayatana-indicator-messages + - autopoint + - clang + - clang-tools + - g++ + - cppcheck + - git + - cmake + - cmake-extras + - mate-common + - gobject-introspection + - gtk-doc-tools + - intltool + - libaccountsservice-dev + - libgirepository1.0-dev + - valac + - systemd + - libgtest-dev + - libdbustest1-dev + - python3-dbusmock + + ubuntu: + - autopoint + - clang + - clang-tools + - g++ + - git + - cmake + - cmake-extras + - mate-common + - gobject-introspection + - gtk-doc-tools + - intltool + - libaccountsservice-dev + - libgirepository1.0-dev + - valac + - systemd + +variables: + - 'CHECKERS=" + -enable-checker deadcode.DeadStores + -enable-checker alpha.deadcode.UnreachableCode + -enable-checker alpha.core.CastSize + -enable-checker alpha.core.CastToStruct + -enable-checker alpha.core.IdenticalExpr + -enable-checker alpha.core.SizeofPtr + -enable-checker alpha.security.ArrayBoundV2 + -enable-checker alpha.security.MallocOverflow + -enable-checker alpha.security.ReturnPtrRange + -enable-checker alpha.unix.SimpleStream + -enable-checker alpha.unix.cstring.BufferOverlap + -enable-checker alpha.unix.cstring.NotNullTerminated + -enable-checker alpha.unix.cstring.OutOfBounds + -enable-checker alpha.core.FixedAddr + -enable-checker security.insecureAPI.strcpy"' + +before_scripts: + - cd ${START_DIR} + - if [ ! -d libayatana-common-build ]; then + - git clone --depth 1 https://github.com/AyatanaIndicators/libayatana-common.git libayatana-common-build + - fi + - cd libayatana-common-build + - cmake . -DCMAKE_INSTALL_PREFIX=/usr + - make + - make install + +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 [ ${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 + - fi + - else + - exit 1 + - fi + - + - if [ $CPU_COUNT -gt 1 ]; then + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make -j $CPU_COUNT + - make clean + - fi + - 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 + +after_scripts: + - if [ ${BUILD_TYPE} == "scripts" ];then + - XVFB_RUN="$(which xvfb-run || true)" + - if [ ${DISTRO_NAME} == "debian" ];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 + - fi + - fi diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2efd2f4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +# vim: set ts=2 sts=2 sw=2 expandtab : +dist: bionic +language: shell +os: linux + +arch: + - amd64 + - ppc64le + +services: + - docker + +addons: + apt: + packages: + - python3-pip + - python3-setuptools + +before_install: + # let's use the MATE project's docker build script... + - curl -Ls -o docker-build https://github.com/AyatanaIndicators/ayatana-dev-scripts/raw/master/travis/docker-build + - chmod +x docker-build + +install: + - pip3 install wheel + - pip3 install PyGithub + - ./docker-build --name ${DISTRO} --config .build.yml --install + +script: + - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts --build autotools + +env: +# temp disable of archlinux builds, see https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/56 +# - DISTRO="archlinux:latest" + - DISTRO="debian:testing" + - DISTRO="debian:stable" +# - DISTRO="ubuntu:rolling" + - DISTRO="ubuntu:focal" + +jobs: + exclude: + - env: DISTRO="archlinux:latest" + arch: ppc64le -- cgit v1.2.3 From f906e47f258b1130801bf9ccea62cda53b7fab26 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 15:42:35 +0200 Subject: src/Makefile.am: Drop -Werror compiler flag for now. Not helpful when setting up CI builds for dirty code. --- src/Makefile.am | 2 +- tests/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 408d934..bc6205f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -30,7 +30,7 @@ ayatana_indicator_messages_service_CFLAGS = \ -Wl,-Bsymbolic-functions \ -Wl,-z,defs \ -Wl,--as-needed \ - -Werror -Wno-error=deprecated-declarations \ + -Wno-error=deprecated-declarations \ -DG_LOG_DOMAIN=\"Ayatana-Indicator-Messages\" ayatana_indicator_messages_service_LDADD = \ diff --git a/tests/Makefile.am b/tests/Makefile.am index 7e23adc..c6a3db6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -101,7 +101,7 @@ libindicator_messages_service_la_CFLAGS = \ -Wl,-Bsymbolic-functions \ -Wl,-z,defs \ -Wl,--as-needed \ - -Werror -Wno-error=deprecated-declarations \ + -Wno-error=deprecated-declarations \ -DG_LOG_DOMAIN=\"Ayatana-Indicator-Messages\" libindicator_messages_service_la_LIBADD = \ -- cgit v1.2.3 From 4f2cb284769b5944b0262fed8da0fd5befe5342a Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 15:50:21 +0200 Subject: .build.yml: Disable tests for autotools builds when not on Debian. --- .build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.build.yml b/.build.yml index f8f10df..6ad68fa 100644 --- a/.build.yml +++ b/.build.yml @@ -95,7 +95,11 @@ build_scripts: - - if [ -e ./autogen.sh ]; then - NOCONFIGURE=1 ./autogen.sh - - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum + - else + - scan-build $CHECKERS ./configure --prefix=/usr --disable-tests --enable-gtk-doc --enable-compile-warnings=maximum + - fi - elif [ -e ./CMakeLists.txt ]; then - if [ ${DISTRO_NAME} == "debian" ];then - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON -- cgit v1.2.3 From 741b89b80232609e83d95913a3ddf8351213275f Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 16:04:31 +0200 Subject: .travis.yml: Don't run autotools builds twice (once via script, once directly). --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2efd2f4..5382638 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ install: - ./docker-build --name ${DISTRO} --config .build.yml --install script: - - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts --build autotools + - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts env: # temp disable of archlinux builds, see https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/56 -- cgit v1.2.3 From f8ce7a2cbe98c37887fa061bf9badf610cdcac78 Mon Sep 17 00:00:00 2001 From: Reza Almanda Date: Thu, 18 Mar 2021 01:25:19 +0000 Subject: Translated using Weblate (Indonesian) Currently translated at 91.6% (11 of 12 strings) Translation: Ayatana Indicators/Messages Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/messages-applet/id/ --- po/id.po | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/po/id.po b/po/id.po index b3d922d..d420bc4 100644 --- a/po/id.po +++ b/po/id.po @@ -8,17 +8,20 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-08-28 20:22+0200\n" -"PO-Revision-Date: 2017-10-12 07:58+0200\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2021-03-18 17:29+0000\n" +"Last-Translator: Reza Almanda \n" +"Language-Team: Indonesian \n" "Language: id\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ASCII\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.5.2-dev\n" #: ../data/org.ayatana.indicator.messages.gschema.xml:1 msgid "List of applications that are shown in the messaging menu" -msgstr "" +msgstr "Daftar aplikasi yang ditampilkan di menu pesan" #: ../data/org.ayatana.indicator.messages.gschema.xml:2 msgid "" @@ -28,41 +31,41 @@ msgstr "" #: ../src/im-application-list.c:231 msgid "New Messages" -msgstr "" +msgstr "Pesan baru" #: ../src/im-application-list.c:235 msgid "Messages" -msgstr "" +msgstr "Pesan" #. title #: ../src/im-application-list.c:258 msgid "Notifications" -msgstr "" +msgstr "Pemberitahuan" #: ../src/im-desktop-menu.c:67 msgid "Available" -msgstr "" +msgstr "Tersedia" #: ../src/im-desktop-menu.c:68 msgid "Away" -msgstr "" +msgstr "pergi" #: ../src/im-desktop-menu.c:69 msgid "Busy" -msgstr "" +msgstr "Sibuk" #: ../src/im-desktop-menu.c:70 msgid "Invisible" -msgstr "" +msgstr "Tak terlihat" #: ../src/im-desktop-menu.c:71 msgid "Offline" -msgstr "" +msgstr "Luring" #: ../src/im-desktop-menu.c:367 msgid "Clear" -msgstr "" +msgstr "Bersihkan" #: ../src/im-phone-menu.c:76 msgid "Clear All" -msgstr "" +msgstr "Hapus semua" -- cgit v1.2.3 From cb591d0d8fe646ee07574f8e5e42eacdf5c0ed08 Mon Sep 17 00:00:00 2001 From: Weblate Date: Mon, 29 Mar 2021 19:44:46 +0200 Subject: Added translation using Weblate (Chinese (Simplified) (zh_LATN@pinyin)) --- po/zh_LATN@pinyin.po | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 po/zh_LATN@pinyin.po diff --git a/po/zh_LATN@pinyin.po b/po/zh_LATN@pinyin.po new file mode 100644 index 0000000..74c0836 --- /dev/null +++ b/po/zh_LATN@pinyin.po @@ -0,0 +1,68 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-28 20:22+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh_LATN@pinyin\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/org.ayatana.indicator.messages.gschema.xml:1 +msgid "List of applications that are shown in the messaging menu" +msgstr "" + +#: ../data/org.ayatana.indicator.messages.gschema.xml:2 +msgid "" +"Applications corresponding to the desktop file IDs in this list are shown in " +"the messaging menu." +msgstr "" + +#: ../src/im-application-list.c:231 +msgid "New Messages" +msgstr "" + +#: ../src/im-application-list.c:235 +msgid "Messages" +msgstr "" + +#. title +#: ../src/im-application-list.c:258 +msgid "Notifications" +msgstr "" + +#: ../src/im-desktop-menu.c:67 +msgid "Available" +msgstr "" + +#: ../src/im-desktop-menu.c:68 +msgid "Away" +msgstr "" + +#: ../src/im-desktop-menu.c:69 +msgid "Busy" +msgstr "" + +#: ../src/im-desktop-menu.c:70 +msgid "Invisible" +msgstr "" + +#: ../src/im-desktop-menu.c:71 +msgid "Offline" +msgstr "" + +#: ../src/im-desktop-menu.c:367 +msgid "Clear" +msgstr "" + +#: ../src/im-phone-menu.c:76 +msgid "Clear All" +msgstr "" -- cgit v1.2.3 From 0959ee86f6c0d974ec893534fe447e41b50d5ead Mon Sep 17 00:00:00 2001 From: Hosted Weblate Date: Tue, 30 Mar 2021 15:02:47 +0200 Subject: Update translation files Updated by "Update LINGUAS file" hook in Weblate. Translation: Ayatana Indicators/Messages Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/messages-applet/ --- po/LINGUAS | 1 + 1 file changed, 1 insertion(+) diff --git a/po/LINGUAS b/po/LINGUAS index 95d5c5a..c867b43 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -128,3 +128,4 @@ vec csb tt ta_LK +zh_LATN@pinyin -- cgit v1.2.3 From d6ac05e79ea5c4752a70748c216b265ef5398e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Marn=C3=BD?= Date: Sat, 1 May 2021 11:28:01 +0000 Subject: Translated using Weblate (Czech) Currently translated at 100.0% (12 of 12 strings) Translation: Ayatana Indicators/Messages Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/messages-applet/cs/ --- po/cs.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/po/cs.po b/po/cs.po index 9f10868..0260ccd 100644 --- a/po/cs.po +++ b/po/cs.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-08-28 20:22+0200\n" -"PO-Revision-Date: 2020-10-30 00:26+0000\n" -"Last-Translator: Milan Korecky \n" +"PO-Revision-Date: 2021-05-02 11:32+0000\n" +"Last-Translator: Tomáš Marný \n" "Language-Team: Czech \n" "Language: cs\n" @@ -17,11 +17,11 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -"X-Generator: Weblate 4.3.2-dev\n" +"X-Generator: Weblate 4.7-dev\n" #: ../data/org.ayatana.indicator.messages.gschema.xml:1 msgid "List of applications that are shown in the messaging menu" -msgstr "Seznam aplikací které jsou zobrazeny v nabídce zpráv" +msgstr "Seznam aplikací, které jsou zobrazeny v nabídce zpráv" #: ../data/org.ayatana.indicator.messages.gschema.xml:2 msgid "" -- cgit v1.2.3