Add automation scripts/conf for ovirt jenkins. Run builds on push to gerrit and on merge there. Structure defined in [1]. [1] http://www.ovirt.org/CI/Build_and_test_standards Change-Id: I209ec032794575fe0231eb53cdf8d5e0cf978e5a Signed-off-by: Yedidyah Bar David <didi@xxxxxxxxxx> --- automation/README.md | 8 ++++++++ automation/build-artifacts.packages | 14 ++++++++++++++ automation/build-artifacts.repos | 3 +++ automation/build-artifacts.sh | 22 ++++++++++++++++++++++ automation/check-patch.packages | 14 ++++++++++++++ automation/check-patch.repos | 3 +++ automation/check-patch.sh | 5 +++++ 7 files changed, 69 insertions(+) create mode 100644 automation/README.md create mode 100644 automation/build-artifacts.packages create mode 100644 automation/build-artifacts.repos create mode 100755 automation/build-artifacts.sh create mode 100644 automation/check-patch.packages create mode 100644 automation/check-patch.repos create mode 100755 automation/check-patch.sh diff --git a/automation/README.md b/automation/README.md new file mode 100644 index 0000000..1b6a399 --- /dev/null +++ b/automation/README.md @@ -0,0 +1,8 @@ +Continuous Integration Scripts +============================== + +This directory contains scripts for Continuous Integration provided by +[oVirt Jenkins](http://jenkins.ovirt.org/) +system and follows the standard defined in +[Build and test standards](http://www.ovirt.org/CI/Build_and_test_standards) +wiki page. diff --git a/automation/build-artifacts.packages b/automation/build-artifacts.packages new file mode 100644 index 0000000..122348e --- /dev/null +++ b/automation/build-artifacts.packages @@ -0,0 +1,14 @@ +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 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..459ae55 --- /dev/null +++ b/automation/build-artifacts.sh @@ -0,0 +1,22 @@ +#!/bin/bash -xe +[[ -d exported-artifacts ]] \ +|| mkdir -p exported-artifacts + +[[ -d tmp.repos ]] \ +|| mkdir -p tmp.repos + +SUFFIX=".$(date -u +%Y%m%d%H%M%S).git$(git rev-parse --short HEAD)" + +make dist +yum-builddep ovirt-guest-tools-iso.spec +rpmbuild \ + -D "_topdir $PWD/tmp.repos" \ + -D "_sourcedir $PWD" \ + -D "release_suffix ${SUFFIX}" \ + -ba ovirt-guest-tools-iso.spec + +mv *.tar.gz exported-artifacts +find \ + "$PWD/tmp.repos" \ + -iname \*.rpm \ + -exec mv {} exported-artifacts/ \; diff --git a/automation/check-patch.packages b/automation/check-patch.packages new file mode 100644 index 0000000..122348e --- /dev/null +++ b/automation/check-patch.packages @@ -0,0 +1,14 @@ +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 diff --git a/automation/check-patch.repos b/automation/check-patch.repos new file mode 100644 index 0000000..6e168a4 --- /dev/null +++ b/automation/check-patch.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/check-patch.sh b/automation/check-patch.sh new file mode 100755 index 0000000..baba524 --- /dev/null +++ b/automation/check-patch.sh @@ -0,0 +1,5 @@ +#!/bin/bash -xe + +# Currently just build + +exec "$(dirname "$0")"/build-artifacts.sh "$@" -- 2.1.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel