mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 03:47:04 +01:00
38 lines
2.2 KiB
YAML
38 lines
2.2 KiB
YAML
language: python
|
|
cache:
|
|
pip: true
|
|
|
|
git:
|
|
depth: 10
|
|
jobs:
|
|
include:
|
|
- name: "Preview, validate, and build"
|
|
before_install:
|
|
- if [ "$TRAVIS_BRANCH" != "main" ]; then chmod +x autopreview.sh && ./autopreview.sh; fi
|
|
install:
|
|
- gem install --local _gemfiles/asciidoctor-2.0.20.gem _gemfiles/asciidoctor-diagram-plantuml-1.2023.10.gem _gemfiles/asciidoctor-diagram-ditaamini-1.0.3.gem _gemfiles/rexml-3.2.6.gem _gemfiles/asciidoctor-diagram-2.2.14.gem _gemfiles/rouge-4.1.3.gem
|
|
- pip3 install pyyaml aura.tar.gz
|
|
script:
|
|
# Fail if Asciidoctor encounters errors. Or if release notes has links to internal bugs. Pass otherwise. Then, build updated distros
|
|
- chmod +x ./scripts/check-rn-link-perms.sh
|
|
- ./scripts/check-rn-link-perms.sh || travis_terminate 1
|
|
- chmod +x ./scripts/check-asciidoctor-build.sh
|
|
- chmod +x ./scripts/get-updated-distros.sh
|
|
- ./scripts/check-asciidoctor-build.sh || travis_terminate 1
|
|
- |
|
|
./scripts/get-updated-distros.sh |
|
|
while read -r filename; do
|
|
if [ "$filename" == "_topic_maps/_topic_map.yml" ]; then python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.14 --no-upstream-fetch || travis_terminate 1
|
|
|
|
elif [ "$filename" == "_topic_maps/_topic_map_osd.yml" ]; then python3 build.py --distro openshift-dedicated --product "OpenShift Dedicated" --version 4 --no-upstream-fetch || travis_terminate 1
|
|
|
|
elif [ "$filename" == "_topic_maps/_topic_map_ms.yml" ]; then python3 build.py --distro microshift --product "Microshift" --version 4 --no-upstream-fetch || travis_terminate 1
|
|
|
|
elif [ "$filename" == "_topic_maps/_topic_map_rosa.yml" ]; then python3 build.py --distro openshift-rosa --product "Red Hat OpenShift Service on AWS" --version 4 --no-upstream-fetch || travis_terminate 1
|
|
|
|
elif [ "$filename" == "_distro_map.yml" ]; then python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.14 --no-upstream-fetch || travis_terminate 1
|
|
fi
|
|
done
|
|
|
|
if [ -d "drupal-build" ]; then python3 makeBuild.py; fi
|