publish puppet-aodh in tarball for master

This is an experimental thing for now, to get some feedback.
The idea is to follow other Python projects and publish a release of
Puppet Modules on tarballs server.

This first implementation will publish a tarball of puppet-aodh module
for each patch sent in master.

Change-Id: Iac61083ed3d0a587186dfe0ba6f61ae7f93a746a
This commit is contained in:
Emilien Macchi 2016-03-24 20:07:18 -04:00
parent ea95a4e126
commit efec06c294
3 changed files with 20 additions and 4 deletions

View File

@ -5099,6 +5099,7 @@
- puppet-beaker-jobs-centos7:
job-suffix: ''
branch-override: default
- '{name}-tarball'
- project:
name: puppet-apparmor

View File

@ -14,12 +14,25 @@
# License for the specific language governing permissions and limitations
# under the License.
venv=${1:-venv}
# this is a puppet module
if [ -r metadata.json ]; then
MODULE_NAME=$(basename `git rev-parse --show-toplevel`)
puppet module build .
# so we can re-use "tarball" publisher
mv pkg dist
if [ -z "$ZUUL_REFNAME" ] || [ "$ZUUL_REFNAME" == "master" ]; then
mv dist/*.tar.gz dist/$MODULE_NAME-master.tar.gz
# need to figure how to deal with stable branches
fi
else
# this a python project
venv=${1:-venv}
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
rm -f dist/*.tar.gz
tox -e$venv python setup.py sdist
rm -f dist/*.tar.gz
tox -e$venv python setup.py sdist
fi
FILES=dist/*.tar.gz
for f in $FILES; do

View File

@ -8776,6 +8776,8 @@ projects:
- name: puppet-openstack-integration-jobs-scenario001
check-tripleo:
- gate-tripleo-ci-f22-nonha
post:
- puppet-aodh-tarball
- name: openstack/puppet-autossh
template: