Sandro Bonazzola has uploaded a new change for review.

Change subject: automation: add automation scripts
......................................................................

automation: add automation scripts

Added automation scripts as per
https://gerrit.ovirt.org/#/c/37653/5/CI/Build_and_test_standards.md

Change-Id: Ice348d6a168428c8ec605e11ddb8af7012e12991
Signed-off-by: Sandro Bonazzola <[email protected]>
---
A automation/build-artifacts.req
A automation/build-artifacts.sh
A automation/check_merged.req
A automation/check_merged.sh
A automation/check_patch.req
A automation/check_patch.sh
6 files changed, 29 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/14/39714/1

diff --git a/automation/build-artifacts.req b/automation/build-artifacts.req
new file mode 100644
index 0000000..9c81abc
--- /dev/null
+++ b/automation/build-artifacts.req
@@ -0,0 +1,2 @@
+git
+yum-utils
diff --git a/automation/build-artifacts.sh b/automation/build-artifacts.sh
new file mode 100755
index 0000000..a0600cf
--- /dev/null
+++ b/automation/build-artifacts.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/sh
+
+# cleanup
+rm -Rf \
+    exported-artifacts \
+    rpmtop
+mkdir exported-artifacts
+
+
+git_head="$(git log -1 --pretty=format:%h)"
+GIT_RELEASE="$(date --utc +%Y%m%d).git${git_head}"
+make rpmsuffix=".${GIT_RELEASE}" srpm
+yum-builddep ./ovirt-engine-sdk-python.spec
+make rpmsuffix=".${GIT_RELEASE}" rpm
+
+for file in $(find dist -iregex ".*\.\(tar\.gz\|rpm\)$"); do
+    echo "Archiving $file"
+    mv "$file" exported-artifacts/
+done
diff --git a/automation/check_merged.req b/automation/check_merged.req
new file mode 100644
index 0000000..38675cb
--- /dev/null
+++ b/automation/check_merged.req
@@ -0,0 +1 @@
+pyflakes
diff --git a/automation/check_merged.sh b/automation/check_merged.sh
new file mode 100755
index 0000000..7a9860e
--- /dev/null
+++ b/automation/check_merged.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/sh
+
+make test
diff --git a/automation/check_patch.req b/automation/check_patch.req
new file mode 100644
index 0000000..38675cb
--- /dev/null
+++ b/automation/check_patch.req
@@ -0,0 +1 @@
+pyflakes
diff --git a/automation/check_patch.sh b/automation/check_patch.sh
new file mode 100755
index 0000000..7a9860e
--- /dev/null
+++ b/automation/check_patch.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/sh
+
+make test


-- 
To view, visit https://gerrit.ovirt.org/39714
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ice348d6a168428c8ec605e11ddb8af7012e12991
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to