@@ -13,39 +13,32 @@ jobs:
13
13
- CAN_FAIL=true
14
14
15
15
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 "
18
18
install :
19
19
- gem install asciidoctor asciidoctor-diagram rouge
20
20
- pip3 install pyyaml aura.tar.gz
21
21
script :
22
- # Fail if Asciidoctor encounters errors. Pass otherwise.
22
+ # Fail if Asciidoctor encounters errors. Pass otherwise. Then, build updated distros
23
23
- chmod +x ./scripts/check-asciidoctor-build.sh
24
+ - chmod +x ./scripts/get-updated-distros.sh
24
25
- ./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
25
30
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
31
32
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
37
34
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
43
36
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
49
42
50
43
# Remove Vale stage until PR commenting feature is ready
51
44
# - stage: check-with-vale
78
71
- ./autopreview.sh
79
72
80
73
stages :
81
- - cache-and-validate
82
- - build
83
74
- netlify
75
+ - validate-and-build
84
76
# - check-with-vale
85
77
# - automerge
0 commit comments