1 # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
11 # we run autobuild.py inside a samba CI docker image located on gitlab's registry
12 # overwrite this variable if you want use your own image registry.
14 # Or better ask for access to the shared development repository, see
15 # https://wiki.samba.org/index.php/Samba_CI_on_gitlab#Getting_Access
17 SAMBA_CI_CONTAINER_REGISTRY: registry.gitlab.com/samba-team/devel/samba
19 # Set this to the contents of bootstrap/sha1sum.txt
20 # which is generated by bootstrap/template.py --render
22 SAMBA_CI_CONTAINER_TAG: 735b9b509e6928bc71fe4442798e4fe110a98788
24 # The following images are available
25 # Please see the samba-o3 sections at the end of this file!
26 # We should run that for each available image
28 SAMBA_CI_CONTAINER_IMAGE_ubuntu1804: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-ubuntu1804:${SAMBA_CI_CONTAINER_TAG}
29 SAMBA_CI_CONTAINER_IMAGE_ubuntu1604: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-ubuntu1604:${SAMBA_CI_CONTAINER_TAG}
30 SAMBA_CI_CONTAINER_IMAGE_ubuntu1404: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-ubuntu1404:${SAMBA_CI_CONTAINER_TAG}
31 SAMBA_CI_CONTAINER_IMAGE_debian9: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-debian9:${SAMBA_CI_CONTAINER_TAG}
32 SAMBA_CI_CONTAINER_IMAGE_opensuse150: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-opensuse150:${SAMBA_CI_CONTAINER_TAG}
33 SAMBA_CI_CONTAINER_IMAGE_fedora29: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-fedora29:${SAMBA_CI_CONTAINER_TAG}
36 # The image creation details are specified in a separate file
37 # See bootstrap/README.md for details
38 - 'bootstrap/.gitlab-ci.yml'
42 AUTOBUILD_JOB_NAME: $CI_JOB_NAME
43 # We use the ubuntu1804 image as default as
44 # it matches what we have on sn-devel-184.
45 image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1804
58 # See bootstrap/.gitlab-ci.yml how to generate a new image
59 - echo "SAMBA_CI_CONTAINER_REGISTRY[${SAMBA_CI_CONTAINER_REGISTRY}]"
60 - echo "SAMBA_CI_CONTAINER_TAG[${SAMBA_CI_CONTAINER_TAG}]"
61 - bootstrap/template.py --sha1sum > /tmp/sha1sum-template.txt
62 - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-template.txt
63 - echo "${SAMBA_CI_CONTAINER_TAG}" > /tmp/sha1sum-tag.txt
64 - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-tag.txt
65 - diff -u bootstrap/sha1sum.txt /sha1sum.txt
78 - /tmp/samba-testbase/*/*/bin/config.log
82 - runner_system_failure
83 - stuck_or_timeout_failure
85 # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
86 # autobuild name, which means we can define a default template that runs most autobuild jobs
87 - echo "Running cmd script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
88 - script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
91 extends: .shared_template
93 - script/autobuild.py ldb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
94 - script/autobuild.py pidl --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
95 - script/autobuild.py replace --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
96 - script/autobuild.py talloc --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
97 - script/autobuild.py tdb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
98 - script/autobuild.py tevent --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
101 extends: .shared_template
104 extends: .shared_template
107 extends: .shared_template
110 extends: .shared_template
113 extends: .shared_template
116 extends: .shared_template
119 extends: .shared_template
122 extends: .shared_template
125 extends: .shared_template
128 extends: .shared_template
131 extends: .shared_template
134 extends: .shared_template
137 extends: .shared_template
140 extends: .shared_template
143 extends: .shared_template
146 extends: .shared_template
149 extends: .shared_template
152 extends: .shared_template
155 extends: .shared_template
162 # These jobs are only run if the gitlab repo has private runners available.
163 # To enable private jobs, you must add the following var and value to
164 # your gitlab repo by navigating to:
165 # settings -> CI/CD -> Environment variables
166 - $SUPPORT_PRIVATE_TEST == "yes"
169 extends: .private_template
172 extends: .private_template
175 extends: .private_template
178 extends: .private_template
181 # We build samba-o3 on all supported distributions
185 extends: .shared_template
187 AUTOBUILD_JOB_NAME: samba-o3
190 extends: .samba-o3-template
191 image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1804
194 extends: .samba-o3-template
195 image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1604
198 extends: .samba-o3-template
199 image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1404
202 extends: .samba-o3-template
203 image: $SAMBA_CI_CONTAINER_IMAGE_debian9
205 opensuse150-samba-o3:
206 extends: .samba-o3-template
207 image: $SAMBA_CI_CONTAINER_IMAGE_opensuse150
210 extends: .samba-o3-template
211 image: $SAMBA_CI_CONTAINER_IMAGE_fedora29
214 # Keep the samba-o3 sections at the end ...