From da72c4018ed92feab28025f8c6c29894f4c8691c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 3 Mar 2018 19:51:29 +1300 Subject: [PATCH] autobuild: Move "none" environment to samba-none-env This takes this part of the test out of the main, slow samba task but also keeps it away from samba-o3 which is up against the 50min budget on travis-ci. Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Fri Mar 23 12:00:40 CET 2018 on sn-devel-144 --- .gitlab-ci.yml | 8 ++++++++ .travis.yml | 1 + script/autobuild.py | 15 ++++++++++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2ae9eb4032d..60accd463a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,14 @@ build_samba: # this one takes about 4 hours to finish - python script/autobuild.py samba --verbose --tail --testbase /tmp/samba-testbase +build_samba_none_env: + stage: build + tags: + - autobuild + script: + # this one takes about 1 hours to finish + - python script/autobuild.py samba-none-env --verbose --tail --testbase /tmp/samba-testbase + build_samba_others: stage: build tags: diff --git a/.travis.yml b/.travis.yml index 5ad750d1541..19d5b4ce0f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ env: - TASK=samba-libs - TASK=samba-static - TASK=samba-o3 + - TASK=samba-none-env - TASK=samba-nopython - TASK=samba-systemkrb5 - TASK=ldb diff --git a/script/autobuild.py b/script/autobuild.py index 3a8ebe57cd1..699fb41df1f 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -32,6 +32,7 @@ builddirs = { "samba-libs" : ".", "samba-static" : ".", "samba-test-only" : ".", + "samba-none-env" : ".", "samba-systemkrb5" : ".", "samba-nopython" : ".", "ldb" : "lib/ldb", @@ -52,6 +53,7 @@ defaulttasks = [ "ctdb", "samba-ctdb", "samba-libs", "samba-static", + "samba-none-env", "samba-systemkrb5", "samba-nopython", "ldb", @@ -91,7 +93,9 @@ tasks = { # We have 'test' before 'install' because, 'test' should work without 'install' "samba" : [ ("configure", "./configure.developer --with-selftest-prefix=./bin/ab" + samba_configure_params, "text/plain"), ("make", "make -j", "text/plain"), - ("test", "make test FAIL_IMMEDIATELY=1", "text/plain"), + ("test", "make test FAIL_IMMEDIATELY=1 " + "TESTS='--exclude-env=none'", + "text/plain"), ("install", "make install", "text/plain"), ("check-clean-tree", "script/clean-source-tree.sh", "text/plain"), ("clean", "make clean", "text/plain") ], @@ -166,6 +170,15 @@ tasks = { ("allshared-configure", samba_libs_configure_samba + " --with-shared-modules=ALL", "text/plain"), ("allshared-make", "make -j", "text/plain")], + "samba-none-env" : [ + ("random-sleep", "script/random-sleep.sh 60 600", "text/plain"), + ("configure", "./configure.developer --with-selftest-prefix=./bin/ab" + samba_configure_params, "text/plain"), + ("make", "make -j", "text/plain"), + ("test", "make test " + "FAIL_IMMEDIATELY=1 " + "TESTS='--include-env=none'", + "text/plain")], + "samba-static" : [ ("random-sleep", "script/random-sleep.sh 60 600", "text/plain"), # build with all modules static -- 2.47.3