Signed-off-by: Zack Cerza <zack@redhat.com>
#!/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
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
- shell:
!include-raw:
- ../../../scripts/build_utils.sh
+ - ../../setup/setup
- ../../build/build
--- /dev/null
+#!/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[@]"