]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
cephmetrics-pull-requests: Install package deps 762/head
authorZack Cerza <zack@redhat.com>
Mon, 26 Jun 2017 19:54:53 +0000 (13:54 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 26 Jun 2017 20:09:54 +0000 (14:09 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
cephmetrics-pull-requests/build/build
cephmetrics-pull-requests/config/definitions/cephmetrics-pull-requests.yml
cephmetrics-pull-requests/setup/setup [new file with mode: 0644]

index 48947738bb1530d86a36df875bc35dd12e17755a..f06d4c60569d77a90cbbae0c6f7aebfdb3036d46 100644 (file)
@@ -1,11 +1,5 @@
 #!/bin/bash
-
 set -ex
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-install_python_packages "pkgs[@]"
-
 # run tox by recreating the environment and in verbose mode
 # by default this will run all environments defined
 $VENV/tox -rv
index 0522bec408d1bb1ba35b9eed5ff3304631af0e28..658bf09f554e190af3a871e101592b8228a015d1 100644 (file)
@@ -4,7 +4,8 @@
     defaults: global
     concurrent: true
     display-name: 'Cephmetrics: Pull Requests'
-    quiet-period: 5
+    node: small && (centos7 || trusty)
+    quiet-period: 0
     block-downstream: false
     block-upstream: false
     retry-count: 3
@@ -51,4 +52,5 @@
       - shell:
           !include-raw:
             - ../../../scripts/build_utils.sh
+            - ../../setup/setup
             - ../../build/build
diff --git a/cephmetrics-pull-requests/setup/setup b/cephmetrics-pull-requests/setup/setup
new file mode 100644 (file)
index 0000000..e7e8616
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -ex
+if test $(id -u) != 0 ; then
+    SUDO=sudo
+fi
+
+deb_deps="python-dev python-virtualenv"
+rpm_deps="python-devel python-virtualenv"
+if test -f /etc/redhat-release ; then
+    $SUDO yum install -y $rpm_deps
+elif test -f /etc/debian_version ; then
+    $SUDO apt install -y $deb_deps
+fi
+
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"