From e69a0ba6cc4bee99c65614899df6811df14b31f5 Mon Sep 17 00:00:00 2001 From: Antenore Gatta Date: Tue, 25 May 2021 10:52:33 +0200 Subject: Adding CI --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f8a882b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +image: registry.gitlab.com/remmina/remmina/ubuntu:18.04 +stages: +- build +variables: + GIT_SUBMODULE_STRATEGY: recursive + DEB_PPA: ppa:remmina-ppa-team/remmina-next + FREERDP_DAILY_PPA: ppa:remmina-ppa-team/remmina-next-daily + DEBFULLNAME: Remmina CI + DEBEMAIL: admin@remmina.org +ppa:build: + stage: build + before_script: + - apt-get update -qq + - apt-get install -y -qq devscripts + scripts: + - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - ssh-keyscan gitlab.com >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts + - git config --global user.name "Antenore Gatta" + - git config --global user.email "antenore@simbiosi.org" + - git clone git@gitlab.com:Remmina/Remmina.git Remmina + - export TAG="git describe --tags --abbrev=0 | tail -1 | tr -d 'v'" + - cd - + - git clone git@gitlab.com:Remmina/Remmina-Ubuntu-PPA.git Remmina-Ubuntu-PPA + - cd Remmina-Ubuntu-PPA + - dch -v ${TAG}-1+ppa1.1 "Upstream release" -D unstable + - git commit -s -m "Upstream release" -a + - git push + when: on_success -- cgit v1.2.3