2018-08-27 17:03:15 +10:00
|
|
|
language: python
|
2023-07-21 12:02:46 +01:00
|
|
|
cache:
|
|
|
|
|
pip: true
|
2023-10-11 21:42:13 +10:00
|
|
|
|
2022-05-13 20:48:14 +01:00
|
|
|
git:
|
2023-10-11 21:32:08 +01:00
|
|
|
depth: 10
|
2022-01-19 12:08:25 +10:00
|
|
|
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:
|
2023-10-17 22:35:06 +10:00
|
|
|
- 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
|
2023-07-21 12:02:46 +01:00
|
|
|
- pip3 install pyyaml aura.tar.gz
|
2023-05-24 12:22:47 +01:00
|
|
|
script:
|
2023-11-13 11:27:02 +00:00
|
|
|
# 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
|
2023-10-05 09:32:27 +01:00
|
|
|
- chmod +x ./scripts/get-updated-distros.sh
|
2023-08-28 16:27:08 +01:00
|
|
|
- ./scripts/check-asciidoctor-build.sh || travis_terminate 1
|
2023-10-05 09:32:27 +01:00
|
|
|
- |
|
|
|
|
|
./scripts/get-updated-distros.sh |
|
|
|
|
|
while read -r filename; do
|
2023-10-24 08:04:49 +01:00
|
|
|
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
|
2023-07-21 12:02:46 +01:00
|
|
|
|
2023-10-24 08:04:49 +01:00
|
|
|
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
|
2023-07-21 12:02:46 +01:00
|
|
|
|
2023-10-24 08:04:49 +01:00
|
|
|
elif [ "$filename" == "_topic_maps/_topic_map_ms.yml" ]; then python3 build.py --distro microshift --product "Microshift" --version 4 --no-upstream-fetch || travis_terminate 1
|
2023-07-21 12:02:46 +01:00
|
|
|
|
2023-10-24 08:04:49 +01:00
|
|
|
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
|
2023-07-21 12:02:46 +01:00
|
|
|
|
2023-10-24 08:04:49 +01:00
|
|
|
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
|
2023-10-05 09:32:27 +01:00
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ -d "drupal-build" ]; then python3 makeBuild.py; fi
|