summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml6
-rwxr-xr-xscript/autobuild.py40
2 files changed, 35 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c11c9b5c00c..d999cf4693f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -64,6 +64,9 @@ samba-none-env:
samba-nopython:
extends: .shared_template
+samba-nopython-py2:
+ extends: .shared_template
+
samba-systemkrb5:
extends: .shared_template
@@ -92,9 +95,6 @@ ctdb:
samba-ctdb:
extends: .shared_template
-samba-buildpy2-only:
- extends: .shared_template
-
samba-ad-dc-ntvfs:
extends: .shared_template
# this one takes about 100 mins to finish
diff --git a/script/autobuild.py b/script/autobuild.py
index 2d37cffbd5d..91098f51074 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -50,7 +50,7 @@ builddirs = {
"samba-ad-dc-backup": ".",
"samba-systemkrb5": ".",
"samba-nopython": ".",
- "samba-buildpy2-only": ".",
+ "samba-nopython-py2": ".",
"ldb": "lib/ldb",
"tdb": "lib/tdb",
"talloc": "lib/talloc",
@@ -337,7 +337,38 @@ tasks = {
("libs-clean", "make clean", "text/plain")
],
+ # check we can do the same thing using python2
+ "samba-nopython-py2": [
+ ("random-sleep", "script/random-sleep.sh 60 600", "text/plain"),
+ ("configure", "PYTHON=python2 ./configure.developer --picky-developer ${PREFIX} --with-profiling-data --disable-python --without-ad-dc", "text/plain"),
+ ("make", "PYTHON=python2 make -j", "text/plain"),
+ ("install", "PYTHON=python2 make install", "text/plain"),
+ ("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
+ ("clean", "PYTHON=python2 make clean", "text/plain"),
+
+ ("talloc-configure", "cd lib/talloc && PYTHON=python2 " + samba_libs_configure_base + " --bundled-libraries=cmocka,NONE --disable-python", "text/plain"),
+ ("talloc-make", "cd lib/talloc && PYTHON=python2 make", "text/plain"),
+ ("talloc-install", "cd lib/talloc && PYTHON=python2 make install", "text/plain"),
+ ("tdb-configure", "cd lib/tdb && PYTHON=python2 " + samba_libs_configure_base + " --bundled-libraries=cmocka,NONE --disable-python", "text/plain"),
+ ("tdb-make", "cd lib/tdb && PYTHON=python2 make", "text/plain"),
+ ("tdb-install", "cd lib/tdb && PYTHON=python2 make install", "text/plain"),
+
+ ("tevent-configure", "cd lib/tevent && PYTHON=python2 " + samba_libs_configure_base + " --bundled-libraries=cmocka,NONE --disable-python", "text/plain"),
+ ("tevent-make", "cd lib/tevent && PYTHON=python2 make", "text/plain"),
+ ("tevent-install", "cd lib/tevent && PYTHON=python2 make install", "text/plain"),
+
+ ("ldb-configure", "cd lib/ldb && PYTHON=python2 " + samba_libs_configure_base + " --bundled-libraries=cmocka,NONE --disable-python", "text/plain"),
+ ("ldb-make", "cd lib/ldb && PYTHON=python2 make", "text/plain"),
+ ("ldb-install", "cd lib/ldb && PYTHON=python2 make install", "text/plain"),
+
+ # retry against installed library packages
+ ("libs-configure", "PYTHON=python2 " + samba_libs_configure_base + samba_libs_configure_bundled_libs + " --disable-python --without-ad-dc", "text/plain"),
+ ("libs-make", "PYTHON=python2 make -j", "text/plain"),
+ ("libs-install", "PYTHON=python2 make install", "text/plain"),
+ ("libs-check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
+ ("libs-clean", "PYTHON=python2 make clean", "text/plain")
+ ],
"ldb": [
("random-sleep", "../../script/random-sleep.sh 60 600", "text/plain"),
@@ -403,13 +434,6 @@ tasks = {
("check-clean-tree", "../script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain")],
- "samba-buildpy2-only": [("random-sleep", "script/random-sleep.sh 60 600", "text/plain"),
- ("configure", "PYTHON='python' ./configure.developer --with-selftest-prefix=./bin/ab " + samba_configure_params, "text/plain"),
- ("make", "PYTHON='python' make -j", "text/plain"),
- ("install", "PYTHON='python' make install", "text/plain"),
- ("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
- ("clean", "PYTHON='python' make clean", "text/plain")],
-
# these are useful for debugging autobuild
'pass': [("pass", 'echo passing && /bin/true', "text/plain")],