From b3a39588f16c6a95325ed983ae0ada5201dae82d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 14:51:06 +0200 Subject: Travis CI: Initial draft for CI builds. --- .build.yml | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 43 +++++++++++++++++ 2 files changed, 196 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..8771be3 --- /dev/null +++ b/.build.yml @@ -0,0 +1,153 @@ +######################################################### +# THE FOLLOWING LINES IS USED BY docker-build +########################################################## +requires: + archlinux: + # Useful URL: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ayatana-indicator-bluetooth + - clang + - gcc + - git + - make + - startup-notification + - which + - cmake + - cmake-extras + - mate-common + - intltool + - glib2 + - systemd + - vala + + debian: + # Useful URL: https://salsa.debian.org/debian-ayatana-team/ayatana-indicator-bluetooth + - autopoint + - clang + - clang-tools + - g++ + - cppcheck + - git + - cmake + - cmake-extras + - mate-common + - intltool + - libglib2.0-dev + - liblomiri-url-dispatcher-dev + - systemd + - valac + + debian:stable: + - autopoint + - clang + - clang-tools + - g++ + - cppcheck + - git + - cmake + - cmake-extras + - mate-common + - intltool + - libglib2.0-dev + - systemd + - valac + + ubuntu: + - autopoint + - clang + - clang-tools + - g++ + - git + - cmake + - cmake-extras + - mate-common + - intltool + - libglib2.0-dev + - liblomiri-url-dispatcher-dev + - systemd + - valac + + ubuntu:focal: + - autopoint + - clang + - clang-tools + - g++ + - git + - cmake + - cmake-extras + - mate-common + - intltool + - libglib2.0-dev + - systemd + - valac + +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 6c287023d38cde6237508f5b1da23a3c544a1aeb Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 14:53:13 +0200 Subject: Travis CI: Disable unit test runs (none present). --- .build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.build.yml b/.build.yml index 8771be3..bade10b 100644 --- a/.build.yml +++ b/.build.yml @@ -140,14 +140,14 @@ build_scripts: - 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 +#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 -- cgit v1.2.3 From c89874fb9dd5477c8da55717dd9727045adcf98c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 16:06:35 +0200 Subject: .travis.yml: Don't try running autotools based CI build. --- .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 48b55c659bb9d9ca92a466319660c80380c415a6 Mon Sep 17 00:00:00 2001 From: Reza Almanda Date: Thu, 18 Mar 2021 00:52:02 +0000 Subject: Translated using Weblate (Indonesian) Currently translated at 90.9% (10 of 11 strings) Translation: Ayatana Indicators/Bluetooth Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/bluetooth-applet/id/ --- po/id.po | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/po/id.po b/po/id.po index 111f935..9878456 100644 --- a/po/id.po +++ b/po/id.po @@ -8,13 +8,16 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-10-27 15:38+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\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=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.bluetooth.gschema.xml.in:1 msgid "Whether or not to show the bluetooth indicator in the menu bar." @@ -22,41 +25,41 @@ msgstr "" #: ../src/bluez.vala:310 msgid "Unknown" -msgstr "" +msgstr "Tidak diketahui" #: ../src/desktop.vala:96 msgid "Connection" -msgstr "" +msgstr "Koneksi" #: ../src/desktop.vala:146 msgid "Send files…" -msgstr "" +msgstr "Mengirim file…" #: ../src/desktop.vala:152 msgid "Keyboard Settings…" -msgstr "" +msgstr "Pengaturan Papan tik…" #: ../src/desktop.vala:158 msgid "Mouse and Touchpad Settings…" -msgstr "" +msgstr "Pengaturan tetikus dan touchpad…" #: ../src/desktop.vala:165 msgid "Sound Settings…" -msgstr "" +msgstr "Pengaturan suara…" #: ../src/desktop.vala:189 msgid "Visible" -msgstr "" +msgstr "Nampak" #. settings section #: ../src/desktop.vala:202 msgid "Bluetooth Settings…" -msgstr "" +msgstr "Pengaturan Bluetooth…" #: ../src/phone.vala:43 msgid "Bluetooth settings…" -msgstr "" +msgstr "Pengaturan bluetooth…" #: ../src/profile.vala:89 ../src/profile.vala:169 msgid "Bluetooth" -msgstr "" +msgstr "Bluetooth" -- cgit v1.2.3 From e1d6ffe566651e3d455e5560cd630afc0317b31e Mon Sep 17 00:00:00 2001 From: Weblate Date: Mon, 29 Mar 2021 19:44:22 +0200 Subject: Added translation using Weblate (Chinese (Simplified) (zh_LATN@pinyin)) --- po/zh_LATN@pinyin.po | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 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..7169947 --- /dev/null +++ b/po/zh_LATN@pinyin.po @@ -0,0 +1,62 @@ +# 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: 2020-10-26 12:23+0100\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.bluetooth.gschema.xml.in:1 +msgid "Whether or not to show the bluetooth indicator in the menu bar." +msgstr "" + +#: ../src/bluez.vala:310 +msgid "Unknown" +msgstr "" + +#: ../src/desktop.vala:96 +msgid "Connection" +msgstr "" + +#: ../src/desktop.vala:146 +msgid "Send files…" +msgstr "" + +#: ../src/desktop.vala:152 +msgid "Keyboard Settings…" +msgstr "" + +#: ../src/desktop.vala:158 +msgid "Mouse and Touchpad Settings…" +msgstr "" + +#: ../src/desktop.vala:165 +msgid "Sound Settings…" +msgstr "" + +#: ../src/desktop.vala:189 +msgid "Visible" +msgstr "" + +#. settings section +#: ../src/desktop.vala:202 +msgid "Bluetooth Settings…" +msgstr "" + +#: ../src/phone.vala:43 +msgid "Bluetooth settings…" +msgstr "" + +#: ../src/profile.vala:89 ../src/profile.vala:169 +msgid "Bluetooth" +msgstr "" -- cgit v1.2.3 From 7aa2d3bbd275bdb843205d484835ae9f7f2cbf04 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:23:11 +0000 Subject: Translated using Weblate (Czech) Currently translated at 100.0% (11 of 11 strings) Translation: Ayatana Indicators/Bluetooth Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/bluetooth-applet/cs/ --- po/cs.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/po/cs.po b/po/cs.po index 6e49131..311e61a 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: 2020-10-27 15:38+0100\n" -"PO-Revision-Date: 2020-10-29 23:26+0000\n" -"Last-Translator: Milan Korecky \n" +"PO-Revision-Date: 2021-05-02 11:31+0000\n" +"Last-Translator: Tomáš Marný \n" "Language-Team: Czech \n" "Language: cs\n" @@ -17,7 +17,7 @@ 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.bluetooth.gschema.xml.in:1 msgid "Whether or not to show the bluetooth indicator in the menu bar." @@ -37,15 +37,15 @@ msgstr "Odeslat soubory…" #: ../src/desktop.vala:152 msgid "Keyboard Settings…" -msgstr "Nastavení klávesnice …" +msgstr "Nastavení klávesnice…" #: ../src/desktop.vala:158 msgid "Mouse and Touchpad Settings…" -msgstr "Nastavení myši a touchpadu …" +msgstr "Nastavení myši a touchpadu…" #: ../src/desktop.vala:165 msgid "Sound Settings…" -msgstr "Nastavení zvuku …" +msgstr "Nastavení zvuku…" #: ../src/desktop.vala:189 msgid "Visible" -- cgit v1.2.3