.gitlab-ci*.yml: use 'extends: ' instead of YAML Anchors
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Feb 2019 12:26:22 +0000 (13:26 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Feb 2019 01:18:29 +0000 (02:18 +0100)
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-private.yml
.gitlab-ci.yml

index 7ed13fd..f42ec08 100644 (file)
@@ -2,44 +2,50 @@ include:
  - '/.gitlab-ci.yml'
 
 
-.private_template: &private_template
-  stage: build
+.private_template:
+  extends: .shared_template
   tags:
     - docker
     - private
+  before_script:
+    - uname -a
+    - lsb_release -a
+    - mount
+    - df -h
+    - free -h
 
 samba:
-  <<: *private_template
+  extends: .private_template
   script:
     # this one takes about 4 hours to finish
     - script/autobuild.py samba            --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_py2:
-  <<: *private_template
+  extends: .private_template
   script:
     # this one takes about 4 hours to finish
     - script/autobuild.py samba-py2            --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_fileserver:
-  <<: *private_template
+  extends: .private_template
   script:
     # this one takes about 1 hours to finish
     - script/autobuild.py samba-fileserver --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_ad_dc:
-  <<: *private_template
+  extends: .private_template
   script:
     # this one takes about 1 hours to finish
     - script/autobuild.py samba-ad-dc     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 
 samba_ad_dc_py2:
-  <<: *private_template
+  extends: .private_template
   script:
     # this one takes about 1 hours to finish
     - script/autobuild.py samba-ad-dc-py2     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 nt4:
-  <<: *private_template
+  extends: .private_template
   script:
     - script/autobuild.py samba-nt4 --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
index b9766d9..2dbfd87 100644 (file)
@@ -7,7 +7,7 @@ variables:
   GIT_STRATEGY: fetch
   GIT_DEPTH: "3"
 
-.shared_template: &shared_template
+.shared_template:
   image: $CI_REGISTRY/$SAMBA_BUILD_IMAGES_PROJECT:$SAMBA_BUILD
   stage: build
   tags:
@@ -35,81 +35,81 @@ variables:
       - /tmp/samba-testbase/*/*/bin/config.log
 
 samba_none_env:
-  <<: *shared_template
+  extends: .shared_template
   script:
     # this one takes about 1 hours to finish
     - script/autobuild.py samba-none-env    --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_none_env_py2:
-  <<: *shared_template
+  extends: .shared_template
   script:
     # this one takes about 1 hours to finish
     - script/autobuild.py samba-none-env-py2    --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_nopython:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-nopython   --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_systemkrb5:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-systemkrb5 --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_xc:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-xc         --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_o3:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-o3         --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_ad_dc_2:
-  <<: *shared_template
+  extends: .shared_template
   script:
     # this one takes about 1 hours to finish
     - script/autobuild.py samba-ad-dc-2     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_ad_dc_backup:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-ad-dc-backup    --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_ad_dc_2_py2:
-  <<: *shared_template
+  extends: .shared_template
   script:
     # this one takes about 1 hours to finish
     - script/autobuild.py samba-ad-dc-2-py2     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_libs:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-libs       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_libs_py2:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-libs-py2       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_static:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-static     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 ctdb:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py ctdb       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_ctdb:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-ctdb             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 others:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py ldb              --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
     - script/autobuild.py pidl             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
@@ -119,17 +119,17 @@ others:
     - script/autobuild.py tevent           --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_buildpy2_only:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - python script/autobuild.py samba-buildpy2-only             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_ad_dc_ntvfs:
-  <<: *shared_template
+  extends: .shared_template
   script:
     # this one takes about 100 mins to finish
     - script/autobuild.py samba-ad-dc-ntvfs --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
 
 samba_ad_dc_ntvfs_py2:
-  <<: *shared_template
+  extends: .shared_template
   script:
     - script/autobuild.py samba-ad-dc-ntvfs-py2 --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase