Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhatman1441 <blackhat1441@protonmail.com>2024-01-09 15:53:55 +0300
committerbhatman1441 <blackhat1441@protonmail.com>2024-01-09 15:53:55 +0300
commit359420a1bb12481eac9c90349d018756da1a1b9c (patch)
treed4b26e20922221e269efb876ab75701a7368a0d9 /.gitlab-ci.yml
parente811ce031c49a7a531e951bbbad9b8c78ebbd49d (diff)
parentf80897a6ef2647eec64d5932905c05907ef20450 (diff)
Merge branch 'snap-pipeline-updates' into 'master'
CI Pipeline Updates See merge request Remmina/Remmina!2557
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml59
1 files changed, 47 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index af560e4f3..8321e8500 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@
# See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables
-image: registry.gitlab.com/remmina/remmina/ubuntu:20.04
+image: registry.gitlab.com/remmina/remmina/ubuntu:22.04
stages:
- test
- build
@@ -39,7 +39,7 @@ ubuntu:devel:
refs:
- schedules
flatpak:test:
- image: registry.gitlab.com/remmina/remmina/ubuntu:20.04
+ image: registry.gitlab.com/remmina/remmina/ubuntu:22.04
stage: test
variables:
BUNDLE: remmina-dev.flatpak
@@ -47,8 +47,6 @@ flatpak:test:
FLATHUB_REPO: https://dl.flathub.org/repo/flathub.flatpakrepo
before_script:
- apt-get update -qq
- - add-apt-repository $FLATPAK_PPA -y
- - apt-get update -qq
- apt-get install -y -qq flatpak-builder flatpak build-essential git-core
- flatpak --user remote-add --if-not-exists flathub $FLATHUB_REPO
- git config --global protocol.file.allow always
@@ -75,16 +73,51 @@ flatpak:test:
refs:
- schedules
snap:build:
- image: ubuntu:22.04
+ image: registry.gitlab.com/remmina/remmina/snap:22.04
stage: build
script:
- - export LC_ALL=C.UTF-8
- - export LANG=C.UTF-8
- - export SNAP_ARCH=amd64
- - export SNAPCRAFT_BUILD_INFO=1
- - apt-get -y update
- - apt-get install -y git snapcraft
- - SNAPCRAFT_SETUP_CORE=1 snapcraft --destructive-mode
+ - apt-get install -y git
+ - mkdir -p ~/.local/share/snapcraft/provider/launchpad
+ - echo -en "[1]\n" > ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "consumer_key = System-wide" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en ":" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en " Ubuntu (ubuntu)\n" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "consumer_secret = \n" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "access_token = " >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en $LAUNCHPAD_CREDENTIALS_ACCESS_TOKEN >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "\naccess_secret = " >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en $LAUNCHPAD_CREDENTIALS_ACCESS_SECRET >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "\n" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+
+ - snapcraft remote-build --launchpad-accept-public-upload
+
+ - |
+ if ls remmina_*_amd64.snap 1> /dev/null 2>&1; then
+ echo "amd64 snap file found"
+ else
+ echo "amd64 snap file not found"
+ cat remmina_amd64.txt
+ exit 1
+ fi
+
+ - |
+ if ls remmina_*_arm64.snap 1> /dev/null 2>&1; then
+ echo "arm64 snap file found"
+ else
+ echo "arm64 snap file not found"
+ cat remmina_arm64.txt
+ exit 1
+ fi
+
+ - |
+ if ls remmina_*_armhf.snap 1> /dev/null 2>&1; then
+ echo "armhf snap file found"
+ else
+ echo "armhf snap file not found"
+ cat remmina_armhf.txt
+ exit 1
+ fi
+
- |
if [ "$CI_COMMIT_REF_NAME" = "master" ]; then
echo $SNAPCRAFT_LOGIN | base64 --decode --ignore-garbage > snapcraft.login
@@ -92,10 +125,12 @@ snap:build:
snapcraft upload remmina*.snap --release edge
snapcraft logout
fi
+ timeout: 8h 0m
allow_failure: false
artifacts:
paths:
- "./*.snap"
+ - "./remmina_*.txt"
expire_in: 10 days
only:
refs: