From: Peter Hutterer Date: Fri, 28 Feb 2020 03:54:35 +0000 (+1000) Subject: gitlab CI: make the container-clean dependent on container-prep X-Git-Tag: libevdev-1.9.1~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b1b44659701501d0b1ce2e25f3d84d7f44db99b;p=platform%2Fupstream%2Flibevdev.git gitlab CI: make the container-clean dependent on container-prep This is a test commit only to speed things up when testing the container-clean phase. In the real instance, we don't want to remove our containers until the test suite successfully completes on the new container. Signed-off-by: Peter Hutterer --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2047f56..26613c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -413,60 +413,70 @@ fedora:30@container-clean: extends: - .fedora:30 - .container-clean + needs: ["fedora:30@container-prep"] ### fedora 31 fedora:31@container-clean: extends: - .fedora:31 - .container-clean + needs: ["fedora:31@container-prep"] ### ubuntu 19.10 ubuntu:19.10@container-clean: extends: - .ubuntu:19.10 - .container-clean + needs: ["ubuntu:19.10@container-prep"] ### ubuntu 19.04 ubuntu:19.04@container-clean: extends: - .ubuntu:19.04 - .container-clean + needs: ["ubuntu:19.04@container-prep"] ### debian stable debian:stable@container-clean: extends: - .debian:stable - .container-clean + needs: ["debian:stable@container-prep"] ### debian sid debian:sid@container-clean: extends: - .debian:sid - .container-clean + needs: ["debian:sid@container-prep"] ### centos 7 centos:7@container-clean: extends: - .centos:7 - .container-clean + needs: ["centos:7@container-prep"] ### centos 8 centos:8@container-clean: extends: - .centos:8 - .container-clean + needs: ["centos:8@container-prep"] ### arch rolling arch:rolling@container-clean: extends: - .arch:rolling - .container-clean + needs: ["arch:rolling@container-prep"] ### alpine latest alpine:latest@container-clean: extends: - .alpine:latest - .container-clean + needs: ["alpine:latest@container-prep"] ################################################################# diff --git a/.gitlab-ci/gitlab-ci.tmpl b/.gitlab-ci/gitlab-ci.tmpl index e1ceb91..028e1ba 100644 --- a/.gitlab-ci/gitlab-ci.tmpl +++ b/.gitlab-ci/gitlab-ci.tmpl @@ -231,6 +231,7 @@ fedora:31@qemu-prep: extends: - .{{ distro.name }}:{{ version }} - .container-clean + needs: ["{{distro.name}}:{{version}}@container-prep"] {% endfor %} {% endfor %}