summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-11-17 13:25:54 +0100
committerThomas Haller <thaller@redhat.com>2020-11-17 13:28:18 +0100
commit0e7e88cfc7ca3a8cde617b323dd82c92d4768ba5 (patch)
tree7544da78161bfe1613c0b8df981d0c633d8073cd /.gitlab-ci
parentbef81668938e9dd48fefa4896eaca9840171bf8d (diff)
downloadNetworkManager-0e7e88cfc7ca3a8cde617b323dd82c92d4768ba5.tar.gz
gitlab-ci: combine ubuntu/centos install scripts with their debian/fedora counterparts
Ubuntu/Debian and CentOS/Fedora are sufficiently similar that it's better that we have only one variant of ".gitlab-ci/*-install.sh" and "contrib/*/REQUIRED_PACKAGES". This was already the case, however, we used to symlink ".gitlab-ci/centos-install.sh" to "fedora-install.sh". That worked, but it didn't scale very well. For example, if we would follow that pattern, we would also need a symlink "contrib/centos/REQUIRED_PACKAGES" Or should "contrib/centos" symlink to "contrib/fedora"? That seems even more wrong. We already had the "distro.base_type" variable for that. Make use of that also for the install script.
Diffstat (limited to '.gitlab-ci')
l---------.gitlab-ci/centos-install.sh1
-rw-r--r--.gitlab-ci/ci.template4
l---------.gitlab-ci/ubuntu-install.sh1
3 files changed, 2 insertions, 4 deletions
diff --git a/.gitlab-ci/centos-install.sh b/.gitlab-ci/centos-install.sh
deleted file mode 120000
index 78d48447af..0000000000
--- a/.gitlab-ci/centos-install.sh
+++ /dev/null
@@ -1 +0,0 @@
-fedora-install.sh \ No newline at end of file
diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template
index 229ba16d81..4038fe925a 100644
--- a/.gitlab-ci/ci.template
+++ b/.gitlab-ci/ci.template
@@ -37,13 +37,13 @@ variables:
{{"%-13s"| format(distro.name.upper() + '_TAG:')}}'{{distro.tag}}-{{
(ci_fairy.hashfiles('./.gitlab-ci/config.yml',
'./.gitlab-ci/ci.template',
- './.gitlab-ci/' + distro.name + '-install.sh',
+ './.gitlab-ci/' + distro.base_type + '-install.sh',
'./contrib/' + distro.base_type + '/REQUIRED_PACKAGES'))[0:12]
}}'
{% endfor %}
{% for distro in distributions %}
- {{"%-13s"| format(distro.name.upper() + '_EXEC:')}}'bash .gitlab-ci/{{distro.name}}-install.sh'
+ {{"%-13s"| format(distro.name.upper() + '_EXEC:')}}'bash .gitlab-ci/{{distro.base_type}}-install.sh'
{% endfor %}
.nm_artifacts:
diff --git a/.gitlab-ci/ubuntu-install.sh b/.gitlab-ci/ubuntu-install.sh
deleted file mode 120000
index 39fe97d493..0000000000
--- a/.gitlab-ci/ubuntu-install.sh
+++ /dev/null
@@ -1 +0,0 @@
-debian-install.sh \ No newline at end of file