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'
35 image: $SAMBA_CI_CONTAINER_IMAGE
48 # See bootstrap/.gitlab-ci.yml how to generate a new image
49 - echo "SAMBA_CI_CONTAINER_REGISTRY[${SAMBA_CI_CONTAINER_REGISTRY}]"
50 - echo "SAMBA_CI_CONTAINER_TAG[${SAMBA_CI_CONTAINER_TAG}]"
51 - bootstrap/template.py --sha1sum > /tmp/sha1sum-template.txt
52 - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-template.txt
53 - echo "${SAMBA_CI_CONTAINER_TAG}" > /tmp/sha1sum-tag.txt
54 - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-tag.txt
55 - diff -u bootstrap/sha1sum.txt /sha1sum.txt
68 - /tmp/samba-testbase/*/*/bin/config.log
72 - runner_system_failure
73 - stuck_or_timeout_failure
75 # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
76 # autobuild name, which means we can define a default template that runs most autobuild jobs
77 - echo "Running cmd script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
78 - script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
81 extends: .shared_template
83 - script/autobuild.py ldb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
84 - script/autobuild.py pidl --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
85 - script/autobuild.py replace --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
86 - script/autobuild.py talloc --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
87 - script/autobuild.py tdb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
88 - script/autobuild.py tevent --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
91 extends: .shared_template
94 extends: .shared_template
97 extends: .shared_template
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
155 # These jobs are only run if the gitlab repo has private runners available.
156 # To enable private jobs, you must add the following var and value to
157 # your gitlab repo by navigating to:
158 # settings -> CI/CD -> Environment variables
159 - $SUPPORT_PRIVATE_TEST == "yes"
162 extends: .private_template
165 extends: .private_template
168 extends: .private_template
171 extends: .private_template