.gitlab-ci.yml: merge .gitlab-ci-private.yml `.gitlab-ci.yml` support conditional jobs with `only` and `except`. And variables can be read from repo CI/CD settings as condition: build_samba: script: ... only: variables: - $SUPPORT_PRIVATE_TEST == 'yes' Instead of having 2 copies of yml file, we can use this feature to trigger private jobs only when a var like `SUPPORT_PRIVATE_TEST` is defined. I've already added above var to our repos. Once merged, we can remove custom CI config file in gitlab repo settings, and remove .gitlab-ci-private.yml file from code. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Feb 18 10:54:19 CET 2019 on sn-devel-144
autobuild: Drop py2 autobuild jobs Samba v4.11 will no longer support python2, so let's drop the autobuild jobs. This will save some gitlab/sn-devel time and money, as it's less work for CI to do. Note that this highlights some previous inconsistencies: - samba-none-env-py2 was being built for gitlab but not sn-devel. - samba-nt4-py2 was being built for sn-devel but not gitlab I've left samba-buildpy2-only for now, which will be addressed in a subsequent patch. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
.gitlab-ci.yml: Re-indent comments on test times (some of these need to be updated, but for now improve the formatting) Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
.gitlab-ci.yml: Use .extends to avoid duplication of autobuild command This should make our .gitlab-ci.yml file much less overwealming. The downside is that $CI_JOB_NAME is printed rather than the job name in the log, but the upside is that the names must now strictly match. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
.gitlab-ci*.yml: use 'extends: ' instead of YAML Anchors Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
.gitlab-ci*.yml: remove build_ prefixes It's useless to see 'builf_samba_ad...' 7 times in the gitlab pipeline summary. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
CI: move target "build_nt4" to private gitlab runners Fixes the mistake of 574fdfae59c6d7c97be48ca52ac9aefac82feccd that added "build_nt4" to the public runners. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13761 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Autobuild-User(master): Tim Beale <timbeale@samba.org> Autobuild-Date(master): Thu Jan 24 02:45:09 CET 2019 on sn-devel-144
CI: Adjust CI tasks for new python3 autobuild.py default Now that autobuild has defaulted to python3 (via shebang) we no longer need to explicity call autobuild.py with 'python3' Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Mon Dec 10 14:32:24 CET 2018 on sn-devel-144
CI: Add new py2 CI jobs to replace old py3 ones Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
CI: Run autobuild jobs with python3 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
CI: Remove the remainder py3 jobs Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
CI: Remove purepy3 temporary jobs Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
CI: Add new CI jobs for samba-purepy3 & samba-purepy3-nt4 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
CI: Remove build_samba_ad_dc_py3 CI job We now run a purepython3 ad-dc test job, later when the whole build is running under python3 we will resurrect build_samba_ad_dc_py3 but as (build_samba_ad_dc_py2) for python2 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
CI: Add new CI job for new build_samba_purepy3-ad-dc job Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
gitlab-ci: Run the new python3 autobuild tasks These additional tasks should be less complex than the full build and help get us to a pure python3 build eventually Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
gitlab-ci: Do not hide a possible out-of-space condition by cleaning up the tree These are VMs anyway and will soon vanish, so a cleanup is totally wasted in any case. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
gitlab-ci: Include system-info.txt to give info on possible failures Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
gitlab-ci: Run samba-ad-dc-2 in the shared environment This will allow more AD DC tests to run for those without access to a private gitlab runner. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
gitlab-ci: Use YAML templates to reduce duplication Inspired by WIP patches by Jamie McClymont Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>