gitlab-ci: split up gitlab-ci file
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Apr 2018 08:18:52 +0000 (20:18 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 May 2018 06:17:44 +0000 (08:17 +0200)
The "private" build environments are not available to most users so
remove this from the default build.  Only developers with access
to private runners (rather than a shared runner) will have a runner
tagged as "private".

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
.gitlab-ci-private.yml [new file with mode: 0644]
.gitlab-ci.yml

diff --git a/.gitlab-ci-private.yml b/.gitlab-ci-private.yml
new file mode 100644 (file)
index 0000000..46acf77
--- /dev/null
@@ -0,0 +1,48 @@
+include:
+ - '/.gitlab-ci.yml'
+
+
+build_samba:
+  stage: build
+  tags:
+    - docker
+    - private
+  script:
+    # this one takes about 4 hours to finish
+    - python script/autobuild.py samba            --verbose --tail --testbase /tmp/samba-testbase
+
+build_samba_nt4:
+  stage: build
+  tags:
+    - docker
+    - private
+  script:
+    # this one takes about 1 hours to finish
+    - python script/autobuild.py samba-nt4        --verbose --tail --testbase /tmp/samba-testbase
+
+build_samba_fileserver:
+  stage: build
+  tags:
+    - docker
+    - private
+  script:
+    # this one takes about 1 hours to finish
+    - python script/autobuild.py samba-fileserver --verbose --tail --testbase /tmp/samba-testbase
+
+build_samba_ad_dc:
+  stage: build
+  tags:
+    - docker
+    - private
+  script:
+    # this one takes about 1 hours to finish
+    - python script/autobuild.py samba-ad-dc     --verbose --tail --testbase /tmp/samba-testbase
+
+build_samba_ad_dc_2:
+  stage: build
+  tags:
+    - docker
+    - private
+  script:
+    # this one takes about 1 hours to finish
+    - python script/autobuild.py samba-ad-dc-2     --verbose --tail --testbase /tmp/samba-testbase
index cde8341d0f7dbf1977b8ea3199338eb5e374d5e4..bfefc23aa58599a30f1518f35a6510565c998492 100644 (file)
@@ -14,51 +14,6 @@ before_script:
       sudo swapon /samba-swap;
     fi
 
-build_samba:
-  stage: build
-  tags:
-    - docker
-    - private
-  script:
-    # this one takes about 4 hours to finish
-    - python script/autobuild.py samba            --verbose --tail --testbase /tmp/samba-testbase
-
-build_samba_nt4:
-  stage: build
-  tags:
-    - docker
-    - private
-  script:
-    # this one takes about 1 hours to finish
-    - python script/autobuild.py samba-nt4        --verbose --tail --testbase /tmp/samba-testbase
-
-build_samba_fileserver:
-  stage: build
-  tags:
-    - docker
-    - private
-  script:
-    # this one takes about 1 hours to finish
-    - python script/autobuild.py samba-fileserver --verbose --tail --testbase /tmp/samba-testbase
-
-build_samba_ad_dc:
-  stage: build
-  tags:
-    - docker
-    - private
-  script:
-    # this one takes about 1 hours to finish
-    - python script/autobuild.py samba-ad-dc     --verbose --tail --testbase /tmp/samba-testbase
-
-build_samba_ad_dc_2:
-  stage: build
-  tags:
-    - docker
-    - private
-  script:
-    # this one takes about 1 hours to finish
-    - python script/autobuild.py samba-ad-dc-2     --verbose --tail --testbase /tmp/samba-testbase
-
 build_samba_none_env:
   stage: build
   tags: