summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: f2f9d9dd877359318319e79db0fab48bd74a8f6a (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
image: fedora:30

variables:
  DEPENDENCIES: xmlto docbook-utils libxslt make git discount python2-cheetah
  LANG: C.UTF-8
  GIT_SUBMODULE_STRATEGY: recursive

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
    - if: $CI_PIPELINE_SOURCE == 'push'

pages:
  before_script:
    - rm -f /etc/rpm/macros.image-language-conf
    - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
    # Work-around xmlto and/or docbook stylesheets forcing ISO-8859-1
    - sed -i s/ISO-8859-1/UTF-8/ /usr/share/sgml/docbook/xsl-stylesheets-1.79.2/*/*.xsl
  script:
    # Generate specs locally
    - cd web-export
    - LC_ALL=$LANG ./update.py
    - cd ..
    # That worked, clean up
    - git clean -dxf
    - rm -rf public/
    # Generate specs for older versions
    - cd web-export
    - sed -i 's/USELOCALFILES = True/USELOCALFILES = False/' update.py
    - LC_ALL=$LANG ./update.py
    - cd ..

  artifacts:
    paths:
    - public