]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
distro/tests: add Ubuntu 20.04
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 23 Apr 2020 12:51:35 +0000 (14:51 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Mon, 27 Apr 2020 15:55:43 +0000 (17:55 +0200)
.gitlab-ci.yml
distro/tests/ubuntu2004/Vagrantfile [new file with mode: 0644]
distro/tests/ubuntu2004/ansible.cfg [new symlink]

index ccd59ed378298f139c5998a7aa46df6e37a6bbdf..2ddef347eedc3dd8550623aa112b9fa039518f5e 100644 (file)
@@ -634,4 +634,11 @@ obs:ubuntu1910:x86_64:
     OBS_REPO: knot-resolver-latest
     DISTROTEST_NAME: ubuntu1910
     DISTROTEST_REPO: xUbuntu_19.10
+
+obs:ubuntu2004:x86_64:
+  <<: *distrotest
+  variables:
+    OBS_REPO: knot-resolver-latest
+    DISTROTEST_NAME: ubuntu2004
+    DISTROTEST_REPO: xUbuntu_20.04
 # }}}
diff --git a/distro/tests/ubuntu2004/Vagrantfile b/distro/tests/ubuntu2004/Vagrantfile
new file mode 100644 (file)
index 0000000..3b358b4
--- /dev/null
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: GPL-3.0-or-later
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+
+Vagrant.configure(2) do |config|
+
+    # TODO switch to generic/ubuntu2004 once available (has libvirt box as well)
+    config.vm.box = "ubuntu/focal64"
+    config.vm.synced_folder ".", "/vagrant", disabled: true
+
+    config.vm.define "ubuntu2004_knot-resolver"  do |machine|
+        machine.vm.provision "ansible" do |ansible|
+            ansible.playbook = "../knot-resolver-pkgtest.yaml"
+            ansible.extra_vars = {
+                ansible_python_interpreter: "/usr/bin/python3"
+            }
+        end
+    end
+
+    config.vm.provider :libvirt do |libvirt|
+      libvirt.cpus = 1
+      libvirt.memory = 1024
+    end
+
+    config.vm.provider :virtualbox do |vbox|
+      vbox.cpus = 1
+      vbox.memory = 1024
+    end
+
+end
diff --git a/distro/tests/ubuntu2004/ansible.cfg b/distro/tests/ubuntu2004/ansible.cfg
new file mode 120000 (symlink)
index 0000000..f80698e
--- /dev/null
@@ -0,0 +1 @@
+../.ansible.cfg
\ No newline at end of file