]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
create a setup script to install rpm deps
authorAlfredo Deza <adeza@redhat.com>
Tue, 2 Jun 2015 17:22:31 +0000 (13:22 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 9 Jun 2015 18:57:18 +0000 (14:57 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-deploy/build/setup [new file with mode: 0644]

diff --git a/ceph-deploy/build/setup b/ceph-deploy/build/setup
new file mode 100644 (file)
index 0000000..64b834f
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# This is the script that runs inside Jenkins.
+# http://jenkins.ceph.com/job/ceph-deploy/
+
+set -x
+set -e
+
+# ensure dependencies are installed for RPM hosts, because they are required and
+# we are not building with a contained environment like we do on DEB builds
+
+# TODO: use Mock to build ceph-deploy rpm's and avoid this
+
+rpm_deps="python-devel python-virtualenv python-mock python-tox pytest"
+
+if test -f /etc/redhat-release ; then
+    $SUDO yum install -y "$rpm_deps"
+fi