summaryrefslogtreecommitdiff
path: root/bootstrap/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-03-17 16:49:02 +1300
committerAndrew Bartlett <abartlet@samba.org>2020-03-19 20:46:42 +0000
commite10910f8de542b0be9b89942791bd37288b7a32a (patch)
treeab9cd5d9231bd9134d5d74c828b378dbd977054c /bootstrap/.gitlab-ci.yml
parentee5c07cb0f1c85a56a3f330a692b1b04553213cc (diff)
downloadsamba-e10910f8de542b0be9b89942791bd37288b7a32a.tar.gz
bootstrap: Bring back a Ubuntu 16.04 build but just for the samba-fuzz task
This is needed to restore oss-fuzz support, as this uses the Ubuntu 16.04 package list because all the docker images provided start with a Ubuntu 16.04 base. REF: https://github.com/google/oss-fuzz/issues/3505 REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21189 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'bootstrap/.gitlab-ci.yml')
-rw-r--r--bootstrap/.gitlab-ci.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/bootstrap/.gitlab-ci.yml b/bootstrap/.gitlab-ci.yml
index 4e52da09dcc..ecd9f4d4223 100644
--- a/bootstrap/.gitlab-ci.yml
+++ b/bootstrap/.gitlab-ci.yml
@@ -9,6 +9,7 @@ services:
- gce
variables:
SAMBA_CI_IS_BROKEN_IMAGE: "no"
+ SAMBA_CI_TEST_JOB: "samba-o3"
before_script:
# Ensure we are generating correct the container
- uname -a
@@ -40,9 +41,9 @@ services:
docker run --volume $(pwd):${samba_repo_root} --workdir ${samba_repo_root} ${ci_image_name} \
bootstrap/template.py --sha1sum > /tmp/sha1sum-template.txt
diff -u bootstrap/sha1sum.txt /tmp/sha1sum-template.txt
- # run smoke test with samba-o3
+ # run smoke test with samba-o3 or samba-fuzz
docker run --volume $(pwd):${samba_repo_root} --workdir ${samba_repo_root} ${ci_image_name} \
- /bin/bash -c "sudo chown -R samba:samba ./** && export PKG_CONFIG_PATH=/usr/lib64/compat-gnutls34/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig && script/autobuild.py samba-o3 --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
+ /bin/bash -c "sudo chown -R samba:samba ./** && export PKG_CONFIG_PATH=/usr/lib64/compat-gnutls34/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig && script/autobuild.py ${SAMBA_CI_TEST_JOB} --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
docker tag ${ci_image_name} ${ci_image_path}:${SAMBA_CI_CONTAINER_TAG}
docker tag ${ci_image_name} ${ci_image_path}:${timestamp_tag}
# We build all images, but only upload is it's not marked as broken
@@ -83,6 +84,12 @@ services:
#
- $SAMBA_CI_REBUILD_BROKEN_IMAGES == "yes"
+# This is ONLY for oss-fuzz, so we test a fuzz build not a real one
+ubuntu1604:
+ extends: .build_image_template
+ variables:
+ SAMBA_CI_TEST_JOB: "samba-fuzz"
+
ubuntu1804:
extends: .build_image_template