--- image: registry.gitlab.com/remmina/remmina/ubuntu:18.04 variables: GIT_SUBMODULE_STRATEGY: recursive stages: - upddoc - updi18n remminadoc build: stage: upddoc before_script: - apt-get update -qq - apt-get install -y -qq doxygen graphviz libxslt1.1 xsltproc script: - '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 - git clone git@gitlab.com:Remmina/remminadoc.gitlab.io.git RemminaDoc - git clone git@gitlab.com:Remmina/Remmina.wiki.git Remmina.wiki - cd Remmina - doxygen - cd ../RemminaDoc - git add --all - 'git diff --exit-code --quiet origin/master || git commit -am "Automatic doc build by remmina-ci"' - 'git fetch ; git merge --ff --commit -m "Automatic merge from CI"' - git push origin master when: on_success remminai18n build: stage: updi18n before_script: - apt-get update -qq - apt-get install -y -qq gettext-base gettext script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY_R" | 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 - cd Remmina - scripts/update-translations.sh - 'git diff --exit-code --quiet origin/master || git commit -am "Updating pot file via remmina-ci"' - 'git fetch ; git merge --ff --commit -m "Automatic merge from CI"' - git push origin master when: on_success