[Spice-devel] [NSIS] automation: add standard ci support
Yedidyah Bar David
didi at redhat.com
Mon Oct 16 12:47:10 UTC 2017
From: Sandro Bonazzola <sbonazzo at redhat.com>
Change-Id: Ie16cc0902c4393e62b074661a86f2f5bb9a1efc1
Signed-off-by: Sandro Bonazzola <sbonazzo at redhat.com>
---
automation/build-artifacts.packages | 15 +++++++++++++++
automation/build-artifacts.repos | 3 +++
automation/build-artifacts.sh | 23 +++++++++++++++++++++++
automation/check-patch.packages | 1 +
automation/check-patch.repos | 1 +
automation/check-patch.sh | 3 +++
6 files changed, 46 insertions(+)
create mode 100644 automation/build-artifacts.packages
create mode 100644 automation/build-artifacts.repos
create mode 100755 automation/build-artifacts.sh
create mode 120000 automation/check-patch.packages
create mode 120000 automation/check-patch.repos
create mode 100755 automation/check-patch.sh
diff --git a/automation/build-artifacts.packages b/automation/build-artifacts.packages
new file mode 100644
index 0000000..5da3536
--- /dev/null
+++ b/automation/build-artifacts.packages
@@ -0,0 +1,15 @@
+make
+mingw32-nsis
+mingw32-spice-vdagent
+mingw64-spice-vdagent
+ovirt-guest-agent-windows
+vcredist-x86
+virtio-win
+nsis-simple-service-plugin
+git
+genisoimage
+rsync
+hardlink
+p7zip
+p7zip-plugins
+yum-utils
diff --git a/automation/build-artifacts.repos b/automation/build-artifacts.repos
new file mode 100644
index 0000000..6e168a4
--- /dev/null
+++ b/automation/build-artifacts.repos
@@ -0,0 +1,3 @@
+ovirt-master-snapshot,http://resources.ovirt.org/pub/ovirt-master-snapshot/rpm/$distro
+ovirt-master-snapshot-static,http://resources.ovirt.org/pub/ovirt-master-snapshot-static/rpm/$distro
+virtio-win,https://fedorapeople.org/groups/virt/virtio-win/repo/latest
diff --git a/automation/build-artifacts.sh b/automation/build-artifacts.sh
new file mode 100755
index 0000000..4a19783
--- /dev/null
+++ b/automation/build-artifacts.sh
@@ -0,0 +1,23 @@
+#!/bin/bash -xe
+[[ -d exported-artifacts ]] \
+|| mkdir -p exported-artifacts
+
+[[ -d tmp.repos/SOURCES ]] \
+|| mkdir -p tmp.repos/SOURCES
+
+make dist
+yum-builddep -y ovirt-guest-tools-iso.spec
+
+rpmbuild \
+ -D "_topdir $PWD/tmp.repos" \
+ -ta *.tar.bz2
+
+find \
+ "$PWD/tmp.repos" \
+ -iname \*.rpm \
+ -exec mv {} exported-artifacts/ \;
+
+find \
+ "$PWD/tmp.repos" \
+ -iname \*.iso \
+ -exec mv {} exported-artifacts/ \;
diff --git a/automation/check-patch.packages b/automation/check-patch.packages
new file mode 120000
index 0000000..1903cac
--- /dev/null
+++ b/automation/check-patch.packages
@@ -0,0 +1 @@
+build-artifacts.packages
\ No newline at end of file
diff --git a/automation/check-patch.repos b/automation/check-patch.repos
new file mode 120000
index 0000000..3d35b4f
--- /dev/null
+++ b/automation/check-patch.repos
@@ -0,0 +1 @@
+build-artifacts.repos
\ No newline at end of file
diff --git a/automation/check-patch.sh b/automation/check-patch.sh
new file mode 100755
index 0000000..780366d
--- /dev/null
+++ b/automation/check-patch.sh
@@ -0,0 +1,3 @@
+#!/bin/bash -xe
+
+./automation/build-artifacts.sh
--
1.8.3.1
More information about the Spice-devel
mailing list