1 # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
5 # we run autobuild.py inside a samba CI docker image located on gitlab's registry
6 SAMBA_CI_CONTAINER_REGISTRY: registry.gitlab.com
7 SAMBA_CI_CONTAINER_NAME: samba-team/samba
8 SAMBA_CI_CONTAINER_TAG: latest
9 SAMBA_CI_CONTAINER_IMAGE: $SAMBA_CI_CONTAINER_REGISTRY/$SAMBA_CI_CONTAINER_NAME:$SAMBA_CI_CONTAINER_TAG
14 image: $SAMBA_CI_CONTAINER_IMAGE
22 - echo "Build starting (preparing swap)..."
23 - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
24 sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144;
25 sudo mkswap /samba-swap;
26 sudo swapon /samba-swap;
38 - /tmp/samba-testbase/*/*/bin/config.log
42 - runner_system_failure
43 - stuck_or_timeout_failure
45 # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
46 # autobuild name, which means we can define a default template that runs most autobuild jobs
47 - echo "Running cmd script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
48 - script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
51 extends: .shared_template
53 - script/autobuild.py ldb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
54 - script/autobuild.py pidl --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
55 - script/autobuild.py replace --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
56 - script/autobuild.py talloc --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
57 - script/autobuild.py tdb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
58 - script/autobuild.py tevent --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
61 extends: .shared_template
62 # this one takes about 1 hours to finish
65 extends: .shared_template
68 extends: .shared_template
71 extends: .shared_template
74 extends: .shared_template
77 extends: .shared_template
80 extends: .shared_template
83 extends: .shared_template
84 # this one takes about 1 hours to finish
87 extends: .shared_template
90 extends: .shared_template
93 extends: .shared_template
96 extends: .shared_template
99 extends: .shared_template
102 extends: .shared_template
103 # this one takes about 100 mins to finish
107 extends: .shared_template
119 # These jobs are only run if the gitlab repo has private runners available.
120 # To enable private jobs, you must add the following var and value to
121 # your gitlab repo by navigating to:
122 # settings -> CI/CD -> Environment variables
123 - $SUPPORT_PRIVATE_TEST == "yes"
126 extends: .private_template
127 # this one takes about 4 hours to finish
130 extends: .private_template
131 # this one takes about 1 hours to finish
134 extends: .private_template
135 # this one takes about 1 hours to finish
138 extends: .private_template