File: ci-docs.sh

package info (click to toggle)
libmodulemd 2.15.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,592 kB
  • sloc: ansic: 38,286; python: 3,263; xml: 1,739; sh: 389; makefile: 42
file content (36 lines) | stat: -rwxr-xr-x 979 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/env bash

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $SCRIPT_DIR

source $SCRIPT_DIR/ci-common.inc

set -e
set -x

modulemd_version=${1:-latest}
os=fedora
# glib-2.79.0 available since Fedora ≥ 40 changed a documentation format
# references in libmodulemd documentation do not resolve to glib
# documentation. Use older Fedora release to have an on-line documentation
# with the hyperlinks. See
# <https://github.com/fedora-modularity/libmodulemd/pull/612>.
#release=latest
release=39
repository=quay.io
image=fedora/fedora:${release}

# Override the standard tests with the doc generation template
mmd_run_docker_tests \
    os=$os \
    release=$release \
    repository=$repository \
    image=$image \
    test_template="docs/Dockerfile.tmpl" \
    test_image="libmodulemd-docs-$os:$release" \
    oci_extra_args="
        --env MODULEMD_VERSION=$modulemd_version
        --volume=$GITHUB_WORKSPACE:/builddir
    "

popd # $SCRIPT_DIR