network/telegram: Updated for version 4.14.8.

gitlab/ci: Add pipeline for sbolint checks on MRs.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-01-20 00:34:17 +07:00
parent 7562d94747
commit e1750d7476
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 64 additions and 4 deletions

60
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,60 @@
variables:
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: "true"
# renovate: datasource=gitlab-releases depName=gitlab-org/cli
GLAB_VERSION: 1.36.0
# renovate: datasource=docker depName=aclemons/sbo-maintainer-tools versioning=docker
SBO_MAINTAINER_TOOLS_IMAGE: aclemons/sbo-maintainer-tools:0.9.0-15.0@sha256:bad368eb4e28aac3076c6775b4a8ec96f564434657a4b853f9f961cdeed88404
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
default:
image: docker:24.0.5
services:
- docker:24.0.5-dind
pr-checks:
script: |
set -e
set -o pipefail
apk add git
wget --quiet "https://gitlab.com/gitlab-org/cli/-/releases/v$GLAB_VERSION/downloads/glab_""$GLAB_VERSION""_Linux_x86_64.tar.gz"
tar -xf "glab_""$GLAB_VERSION""_Linux_x86_64.tar.gz" bin/glab
chmod 0755 bin/glab
mv bin/glab /usr/local/bin
rm -rf bin
docker pull "$SBO_MAINTAINER_TOOLS_IMAGE"
git diff-tree --name-only --diff-filter=d --no-commit-id -r $CI_MERGE_REQUEST_DIFF_BASE_SHA $CI_COMMIT_SHA | sed '/^\./d' | sed -n '/[^\/][^\/]*\/[^\/][^\/]*\//p' | xargs -I xx dirname xx | sort -u | while read -r project ; do
mkfifo pipe
tee sbolint-output < pipe &
exec 3>pipe
set +e
docker run --rm -v "$(pwd):/work" -w /work "$SBO_MAINTAINER_TOOLS_IMAGE" sbolint "$project" >&3 2>&1
sbolint_status="$?"
set -e
exec 3>&-
rm pipe
{
if [[ "$sbolint_status" -eq 0 ]] ; then
printf '#### ✅ sbolint - %s\n\n' "$project ✅"
else
printf '#### ⛔️ sbolint - %s\n\n' "$project ⛔️"
fi
printf '```\n'
cat sbolint-output
rm sbolint-output
printf '```\n'
} > comment-output
GITLAB_TOKEN="$MR_AUTOMATION_TOKEN" glab mr --repo "$CI_PROJECT_PATH" comment $(echo "$CI_OPEN_MERGE_REQUESTS" | cut -d '!' -f2) --unique=true --message "$(cat comment-output)"
done

View file

@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=telegram
SRCNAM=tsetup
SRCDIR=Telegram
VERSION=${VERSION:-4.14.4}
VERSION=${VERSION:-4.14.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

View file

@ -1,10 +1,10 @@
PRGNAM="telegram"
VERSION="4.14.4"
VERSION="4.14.8"
HOMEPAGE="https://telegram.org"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://updates.tdesktop.com/tlinux/tsetup.4.14.4.tar.xz"
MD5SUM_x86_64="fbf70b077940bcb4950d0ed4b92d087c"
DOWNLOAD_x86_64="https://updates.tdesktop.com/tlinux/tsetup.4.14.8.tar.xz"
MD5SUM_x86_64="eefc0a8fbd950b3d566a33d1bf1c0770"
REQUIRES=""
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"