@@ -13,39 +13,32 @@ jobs:
1313 - CAN_FAIL=true
1414
1515 include :
16- - stage : cache -and-validate
17- name : " Create install cache and validate updated assemblies "
16+ - stage : validate -and-build
17+ name : " Validate and build "
1818 install :
1919 - gem install asciidoctor asciidoctor-diagram rouge
2020 - pip3 install pyyaml aura.tar.gz
2121 script :
22- # Fail if Asciidoctor encounters errors. Pass otherwise.
22+ # Fail if Asciidoctor encounters errors. Pass otherwise. Then, build updated distros
2323 - chmod +x ./scripts/check-asciidoctor-build.sh
24+ - chmod +x ./scripts/get-updated-distros.sh
2425 - ./scripts/check-asciidoctor-build.sh || travis_terminate 1
26+ - |
27+ ./scripts/get-updated-distros.sh |
28+ while read -r filename; do
29+ if [ "$filename" == "_topic_maps/_topic_map.yml" ]; then python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.14 --no-upstream-fetch
2530
26- - stage : build
27- if : branch IN (main, enterprise-4.13, enterprise-4.14)
28- name : " Build openshift-enterprise distro"
29- script :
30- - python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.14 --no-upstream-fetch && python3 makeBuild.py
31+ elif [ "$filename" == "_topic_maps/_topic_map_osd.yml" ]; then python3 build.py --distro openshift-dedicated --product "OpenShift Dedicated" --version 4 --no-upstream-fetch
3132
32- - # stage name not required, will continue to use `build`
33- if : branch IN (main, enterprise-4.13, enterprise-4.14)
34- name : " Build openshift-dedicated distro"
35- script :
36- - python3 build.py --distro openshift-dedicated --product "OpenShift Dedicated" --version 4 --no-upstream-fetch && python3 makeBuild.py
33+ elif [ "$filename" == "_topic_maps/_topic_map_ms.yml" ]; then python3 build.py --distro microshift --product "Microshift" --version 4 --no-upstream-fetch
3734
38- - # stage name not required, will continue to use `build`
39- if : branch IN (main, enterprise-4.13, enterprise-4.14)
40- name : " Build openshift-rosa distro"
41- script :
42- - python3 build.py --distro openshift-rosa --product "Red Hat OpenShift Service on AWS" --version 4 --no-upstream-fetch && python3 makeBuild.py
35+ 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
4336
44- - # stage name not required, will continue to use ` build`
45- if : branch IN (main, enterprise-4.13, enterprise-4.14)
46- name : " Build microshift distro "
47- script :
48- - python3 build.py --distro microshift --product "Microshift" --version 4 --no-upstream-fetch && python3 makeBuild.py
37+ elif [ "$filename" == "_distro_map.yml" ]; then python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.14 --no-upstream-fetch
38+ fi
39+ done
40+
41+ if [ -d "drupal-build" ]; then python3 makeBuild.py; fi
4942
5043 # Remove Vale stage until PR commenting feature is ready
5144 # - stage: check-with-vale
7871 - ./autopreview.sh
7972
8073stages :
81- - cache-and-validate
82- - build
8374 - netlify
75+ - validate-and-build
8476 # - check-with-vale
8577 # - automerge
0 commit comments