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

.gitlab-ci.yml - gitlab.com/Remmina/remmina-ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0dfc3ae20d21739e78bc38bfee8147b5e8f241bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
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