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: 8606e89b0ce6a916fa881549a6cebf6eed528157
24 # Be use the ubuntu1404 image as it matches what we
25 # have on sn-devel-144.
27 SAMBA_CI_CONTAINER_IMAGE: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-ubuntu1404:${SAMBA_CI_CONTAINER_TAG}
30 # The image creation details are specified in a separate file
31 # See bootstrap/README.md for details
32 - 'bootstrap/.gitlab-ci.yml'
36 AUTOBUILD_JOB_NAME: $CI_JOB_NAME
37 image: $SAMBA_CI_CONTAINER_IMAGE
50 # See bootstrap/.gitlab-ci.yml how to generate a new image
51 - echo "SAMBA_CI_CONTAINER_REGISTRY[${SAMBA_CI_CONTAINER_REGISTRY}]"
52 - echo "SAMBA_CI_CONTAINER_TAG[${SAMBA_CI_CONTAINER_TAG}]"
53 - bootstrap/template.py --sha1sum > /tmp/sha1sum-template.txt
54 - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-template.txt
55 - echo "${SAMBA_CI_CONTAINER_TAG}" > /tmp/sha1sum-tag.txt
56 - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-tag.txt
57 - diff -u bootstrap/sha1sum.txt /sha1sum.txt
70 - /tmp/samba-testbase/*/*/bin/config.log
74 - runner_system_failure
75 - stuck_or_timeout_failure
77 # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
78 # autobuild name, which means we can define a default template that runs most autobuild jobs
79 - echo "Running cmd script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
80 - script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
83 extends: .shared_template
85 - script/autobuild.py ldb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
86 - script/autobuild.py pidl --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
87 - script/autobuild.py replace --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
88 - script/autobuild.py talloc --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
89 - script/autobuild.py tdb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
90 - script/autobuild.py tevent --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
93 extends: .shared_template
96 extends: .shared_template
99 extends: .shared_template
102 extends: .shared_template
105 extends: .shared_template
108 extends: .shared_template
111 extends: .shared_template
114 extends: .shared_template
117 extends: .shared_template
120 extends: .shared_template
123 extends: .shared_template
126 extends: .shared_template
129 extends: .shared_template
132 extends: .shared_template
135 extends: .shared_template
138 extends: .shared_template
141 extends: .shared_template
144 extends: .shared_template
147 extends: .shared_template
150 extends: .shared_template
157 # These jobs are only run if the gitlab repo has private runners available.
158 # To enable private jobs, you must add the following var and value to
159 # your gitlab repo by navigating to:
160 # settings -> CI/CD -> Environment variables
161 - $SUPPORT_PRIVATE_TEST == "yes"
164 extends: .private_template
167 extends: .private_template
170 extends: .private_template
173 extends: .private_template