1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/.travis.yml.old

38 lines
2.2 KiB
YAML
Raw Normal View History

language: python
cache:
pip: true
2023-10-11 21:42:13 +10:00
git:
2023-10-11 21:32:08 +01:00
depth: 10
jobs:
include:
2023-12-08 14:25:29 +00:00
- name: "Preview, validate, and build"
2023-12-13 09:06:35 +10:00
before_install:
- if [ "$TRAVIS_BRANCH" != "main" ]; then chmod +x autopreview.sh && ./autopreview.sh; fi
2023-05-24 12:22:47 +01:00
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
2023-05-24 12:22:47 +01:00
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
2023-08-28 16:27:08 +01:00
- chmod +x ./scripts/check-asciidoctor-build.sh
- chmod +x ./scripts/get-updated-distros.sh
2023-08-28 16:27:08 +01:00
- ./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