diff options
author | Stefan Metzmacher <metze@samba.org> | 2020-12-28 17:12:39 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2021-04-13 08:23:35 +0000 |
commit | 307edf82023545cb803b7e23bd43bfe631bbf2a0 (patch) | |
tree | f389560ed610aad06e114f844592cab6a83cac13 /script | |
parent | e466bac9a8addf5c35d287874078a940a0e72916 (diff) | |
download | samba-307edf82023545cb803b7e23bd43bfe631bbf2a0.tar.gz |
script/autobuild.py: split out samba-{nt4,h5l,no-opath}-build
These will be used to move the build stages from private gitlab runner
jobs to shared runners.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/autobuild.py | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index dad1bb9393a..0ec920348dd 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -235,6 +235,36 @@ tasks = { ], }, + "samba-nt4-build": { + "git-clone-required": True, + "sequence": [ + ("configure", "./configure.developer --without-ad-dc --without-ldap --without-ads --without-json" + samba_configure_params), + ("make", "make -j"), + ("check-clean-tree", CLEAN_SOURCE_TREE_CMD), + ("chmod-R-a-w", "chmod -R a-w ."), + ], + }, + + "samba-h5l-build": { + "git-clone-required": True, + "sequence": [ + ("configure", "./configure.developer --without-ad-dc --with-system-heimdalkrb5" + samba_configure_params), + ("make", "make -j"), + ("check-clean-tree", CLEAN_SOURCE_TREE_CMD), + ("chmod-R-a-w", "chmod -R a-w ."), + ], + }, + + "samba-no-opath-build": { + "git-clone-required": True, + "sequence": [ + ("configure", "ADDITIONAL_CFLAGS='-DDISABLE_OPATH=1' ./configure.developer --without-ad-dc " + samba_configure_params), + ("make", "make -j"), + ("check-clean-tree", CLEAN_SOURCE_TREE_CMD), + ("chmod-R-a-w", "chmod -R a-w ."), + ], + }, + # We have 'test' before 'install' because, 'test' should work without 'install (runs all the other envs)' "samba": { "sequence": [ @@ -364,10 +394,9 @@ tasks = { }, "samba-nt4": { + "dependency": "samba-nt4-build", "sequence": [ ("random-sleep", random_sleep(300, 900)), - ("configure", "./configure.developer --without-ad-dc --without-ldap --without-ads --without-json" + samba_configure_params), - ("make", "make -j"), ("test", make_test(include_envs=[ "nt4_dc", "nt4_dc_smb1", @@ -378,15 +407,13 @@ tasks = { ])), ("lcov", LCOV_CMD), ("check-clean-tree", CLEAN_SOURCE_TREE_CMD), - ("clean", "make clean"), ], }, "samba-fileserver": { + "dependency": "samba-h5l-build", "sequence": [ ("random-sleep", random_sleep(300, 900)), - ("configure", "./configure.developer --without-ad-dc --with-system-heimdalkrb5" + samba_configure_params), - ("make", "make -j"), ("test", make_test(include_envs=[ "fileserver", "fileserver_smb1", @@ -416,10 +443,9 @@ tasks = { }, "samba-no-opath": { + "dependency": "samba-no-opath-build", "sequence": [ ("random-sleep", random_sleep(300, 900)), - ("configure", "ADDITIONAL_CFLAGS='-DDISABLE_OPATH=1' ./configure.developer --without-ad-dc " + samba_configure_params), - ("make", "make -j"), ("test", make_test( cmd="make test DISABLE_OPATH=1", include_envs=[ @@ -912,7 +938,10 @@ defaulttasks = list(tasks.keys()) defaulttasks.remove("pass") defaulttasks.remove("fail") defaulttasks.remove("samba-def-build") +defaulttasks.remove("samba-nt4-build") defaulttasks.remove("samba-mit-build") +defaulttasks.remove("samba-h5l-build") +defaulttasks.remove("samba-no-opath-build") defaulttasks.remove("samba-test-only") defaulttasks.remove("samba-fuzz") defaulttasks.remove("samba-fips") |