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: 2be76362af215af6842e884abd5246dd9b50c283
23 # We use the ubuntu1804 image as default as
24 # it matches what we have on sn-devel-184.
25 SAMBA_CI_CONTAINER_IMAGE: ubuntu1804
27 # The following images are available
28 # Please see the samba-o3 sections at the end of this file!
29 # We should run that for each available image
31 SAMBA_CI_CONTAINER_IMAGE_ubuntu1804: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-ubuntu1804:${SAMBA_CI_CONTAINER_TAG}
32 SAMBA_CI_CONTAINER_IMAGE_ubuntu1604: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-ubuntu1604:${SAMBA_CI_CONTAINER_TAG}
33 SAMBA_CI_CONTAINER_IMAGE_debian9: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-debian9:${SAMBA_CI_CONTAINER_TAG}
34 SAMBA_CI_CONTAINER_IMAGE_opensuse150: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-opensuse150:${SAMBA_CI_CONTAINER_TAG}
35 SAMBA_CI_CONTAINER_IMAGE_fedora29: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-fedora29:${SAMBA_CI_CONTAINER_TAG}
38 # The image creation details are specified in a separate file
39 # See bootstrap/README.md for details
40 - 'bootstrap/.gitlab-ci.yml'
44 AUTOBUILD_JOB_NAME: $CI_JOB_NAME
45 image: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-${SAMBA_CI_CONTAINER_IMAGE}:${SAMBA_CI_CONTAINER_TAG}
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
81 - runner_system_failure
82 - stuck_or_timeout_failure
84 # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
85 # autobuild name, which means we can define a default template that runs most autobuild jobs
86 - echo "Running cmd script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
87 - script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
90 extends: .shared_template
92 - script/autobuild.py ldb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
93 - script/autobuild.py pidl --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
94 - script/autobuild.py replace --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
95 - script/autobuild.py talloc --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
96 - script/autobuild.py tdb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
97 - script/autobuild.py tevent --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
100 extends: .shared_template
103 extends: .shared_template
106 extends: .shared_template
109 extends: .shared_template
112 extends: .shared_template
115 extends: .shared_template
118 extends: .shared_template
121 extends: .shared_template
124 extends: .shared_template
127 extends: .shared_template
130 extends: .shared_template
133 extends: .shared_template
136 extends: .shared_template
139 extends: .shared_template
142 extends: .shared_template
145 extends: .shared_template
148 extends: .shared_template
151 extends: .shared_template
154 extends: .shared_template
160 # These jobs are only run if the gitlab repo has private runners available.
161 # To enable private jobs, you must add the following var and value to
162 # your gitlab repo by navigating to:
163 # settings -> CI/CD -> Environment variables
164 - $SUPPORT_PRIVATE_TEST == "yes"
167 extends: .private_template
170 extends: .private_template
173 extends: .private_template
176 extends: .private_template
179 # We build samba-o3 on all supported distributions
183 extends: .shared_template
185 AUTOBUILD_JOB_NAME: samba-o3
188 extends: .samba-o3-template
189 image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1804
192 extends: .samba-o3-template
193 image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1604
196 extends: .samba-o3-template
197 image: $SAMBA_CI_CONTAINER_IMAGE_debian9
199 opensuse150-samba-o3:
200 extends: .samba-o3-template
201 image: $SAMBA_CI_CONTAINER_IMAGE_opensuse150
204 extends: .samba-o3-template
205 image: $SAMBA_CI_CONTAINER_IMAGE_fedora29
208 # Keep the samba-o3 sections at the end ...