]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
call the ansible playbook before running tox, so that we have py2.6 in
authorAlfredo Deza <adeza@redhat.com>
Wed, 16 Mar 2016 14:42:23 +0000 (10:42 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 16 Mar 2016 14:42:23 +0000 (10:42 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw-agent-pull-requests/build/build

index 33b6b98bb5d54f7c734f17e3ab8f5d9099342cb5..d7c3aea2bc278f08744902f20e600cbd45f05a7b 100644 (file)
@@ -1,22 +1,17 @@
 #!/bin/bash
 
-set -ex
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "ansible" "tox" )
+install_python_packages "pkgs[@]"
 
-# Create the virtualenv
-virtualenv venv
-. venv/bin/activate
 
-# Define and ensure the PIP cache
-PIP_SDIST_INDEX="$HOME/.cache/pip"
-mkdir -p $PIP_SDIST_INDEX
-
-# Install the package by trying with the cache first, otherwise doing a download only, and then
-# trying to install from the cache again.
-if ! venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index tox; then
-    venv/bin/pip install --download-directory="$PIP_SDIST_INDEX" tox
-    venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index tox
-fi
+# run ansible to get this current host to meet our requirements, specifying
+# a local connection and 'localhost' as the host where to execute. This might look
+# odd because we are using ceph-deploy playbooks. But the requirements are the same
+cd "$WORKSPACE/ceph-build/ceph-deploy-pull-requests/setup/playbooks"
+$VENV/ansible-playbook -i "localhost," -c local setup.yml
 
 
 # create the build with tox
-tox -rv
+cd $WORKSPACE/radosgw-agent
+$VENV/tox -rv