2017-09-20 09:33:27 +12:00
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
2017-11-28 10:20:54 +13:00
2017-12-12 14:26:07 +13:00
variables :
2019-02-14 12:26:26 +13:00
# we run autobuild.py inside a samba CI docker image located on gitlab's registry
2019-02-14 08:19:46 +01:00
SAMBA_CI_CONTAINER_REGISTRY : registry.gitlab.com
SAMBA_CI_CONTAINER_NAME : samba-team/samba
SAMBA_CI_CONTAINER_TAG : latest
SAMBA_CI_CONTAINER_IMAGE : $SAMBA_CI_CONTAINER_REGISTRY/$SAMBA_CI_CONTAINER_NAME:$SAMBA_CI_CONTAINER_TAG
2017-12-12 14:26:07 +13:00
GIT_STRATEGY : fetch
GIT_DEPTH : "3"
2019-02-11 13:26:22 +01:00
.shared_template :
2019-02-14 08:19:46 +01:00
image : $SAMBA_CI_CONTAINER_IMAGE
2018-03-03 19:51:29 +13:00
stage : build
tags :
2018-03-20 15:07:03 +13:00
- docker
- shared
2018-11-20 08:16:42 +01:00
before_script :
2019-02-11 13:23:58 +01:00
- uname -a
- lsb_release -a
2018-11-20 08:16:42 +01:00
- echo "Build starting (preparing swap)..."
- if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144;
sudo mkswap /samba-swap;
sudo swapon /samba-swap;
fi
2019-02-11 13:23:58 +01:00
- mount
- df -h
- free -h
2018-11-20 08:17:37 +01:00
artifacts :
expire_in : 1 week
when : on_failure
paths :
- "*.stdout"
- "*.stderr"
- system-info.txt
- /tmp/samba-testbase/*/*/bin/config.log
2019-02-11 12:53:03 +01:00
retry :
max : 2
when :
- runner_system_failure
- stuck_or_timeout_failure
2019-02-13 16:43:51 +13:00
script :
2019-02-14 11:20:16 +13:00
# gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
# autobuild name, which means we can define a default template that runs most autobuild jobs
- echo "Running cmd script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
2019-02-13 16:43:51 +13:00
- script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
2018-04-30 20:31:19 +12:00
2019-02-13 16:43:51 +13:00
others :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-03-03 19:51:29 +13:00
script :
2019-02-13 16:43:51 +13:00
- script/autobuild.py ldb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
- script/autobuild.py pidl --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
- script/autobuild.py replace --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
- script/autobuild.py talloc --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
- script/autobuild.py tdb --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
- script/autobuild.py tevent --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
samba-none-env :
extends : .shared_template
2019-02-14 09:55:45 +13:00
# this one takes about 1 hours to finish
2018-03-03 19:51:29 +13:00
2019-02-13 16:43:51 +13:00
samba-nopython :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-03-22 15:13:18 +13:00
2019-02-15 12:17:49 +13:00
samba-nopython-py2 :
extends : .shared_template
2019-02-13 16:43:51 +13:00
samba-systemkrb5 :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-03-22 15:13:18 +13:00
2019-02-13 16:43:51 +13:00
samba-xc :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-03-22 15:13:18 +13:00
2019-02-13 16:43:51 +13:00
samba-o3 :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-03-22 15:13:18 +13:00
2019-02-13 16:43:51 +13:00
samba-ad-dc-2 :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2019-02-14 09:55:45 +13:00
# this one takes about 1 hours to finish
2019-02-05 15:17:03 +13:00
2019-02-13 16:43:51 +13:00
samba-ad-dc-backup :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-04-30 20:38:43 +12:00
2019-02-13 16:43:51 +13:00
samba-libs :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-03-22 15:13:18 +13:00
2019-02-13 16:43:51 +13:00
samba-static :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2017-09-20 09:33:27 +12:00
2019-02-11 12:47:29 +01:00
ctdb :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2018-03-22 15:13:18 +13:00
2019-02-13 16:43:51 +13:00
samba-ctdb :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2017-09-20 09:33:27 +12:00
2019-02-13 16:43:51 +13:00
samba-ad-dc-ntvfs :
2019-02-11 13:26:22 +01:00
extends : .shared_template
2019-02-14 09:55:45 +13:00
# this one takes about 100 mins to finish
2019-01-23 09:43:33 +01:00
2019-02-15 22:25:07 +13:00
.private_template :
extends : .shared_template
tags :
- docker
- private
before_script :
- uname -a
- lsb_release -a
- mount
- df -h
- free -h
only :
variables :
# These jobs are only run if the gitlab repo has private runners available.
# To enable private jobs, you must add the following var and value to
# your gitlab repo by navigating to:
# settings -> CI/CD -> Environment variables
- $SUPPORT_PRIVATE_TEST == "yes"
samba :
extends : .private_template
# this one takes about 4 hours to finish
samba-fileserver :
extends : .private_template
# this one takes about 1 hours to finish
samba-ad-dc :
extends : .private_template
# this one takes about 1 hours to finish
samba-nt4 :
extends : .private_template