From 736f5adcaea4998692539c749a564577e53aa74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cugoday=E2=80=9D?= Date: Thu, 7 Jul 2016 12:09:28 +0300 Subject: [PATCH] add build dependencies with plugin --- .gitignore | 1 + pre_build_hook | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 79c1a8c..43b5eb8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .build *.pyc *.rpm +*.deb .#* \#* *~ diff --git a/pre_build_hook b/pre_build_hook index 49e8fc6..a8b41ce 100755 --- a/pre_build_hook +++ b/pre_build_hook @@ -1,7 +1,21 @@ #!/bin/bash -# Add here any the actions which are required before plugin build -# like packages building, packages downloading from mirrors and so on. -# The script should return 0 if there were no errors. - +# update submodules for core puppet manifests git submodule update --remote deployment_scripts/puppet/modules/manila + +# build the deb for manila project +curdir=$(pwd) +tmpdir=$(mktemp -d); cd $tmpdir + +git clone --depth 1 -b stable/mitaka https://github.com/openstack/manila.git +fpm -s python -t deb manila/setup.py + +git clone --depth 1 -b stable/mitaka https://github.com/openstack/python-manilaclient.git +fpm -s python -t deb python-manilaclient/setup.py + +git clone --depth 1 -b stable/mitaka https://github.com/openstack/manila-ui.git +fpm -s python -t deb manila-ui/setup.py + +cp *.deb $curdir/repositories/ubuntu +cd .. ; rm -rf $tmpdir +