Marton Kiss 1978a797ad Groups community portal gating tasks
Add gating, unittest and distro tarball creation to groups project.
Related bootstrap and gate scripts inside openstack-infra/groups:
scripts/bootstrap.sh
scripts/gate-build.sh

Change-Id: I501c746395e1f1d3f25352f473f31d6123252865
2014-02-03 20:13:33 +01:00

50 lines
1.4 KiB
YAML

- job:
name: gate-groups-unittests
node: bare-precise
builders:
- gerrit-git-prep
- shell: |
./scripts/bootstrap.sh
./scripts/gate-build.sh
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: './reports/**'
keep-hierarchy: true
copy-after-failure: true
- job-template:
name: 'groups-release-{branch-designator}'
node: bare-precise
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
./script/bootstrap.sh
ARCHIVE_NAME={name}
if [ "$BRANCH" != "master" ] ; then
BRANCH_PATH=`echo $ZUUL_REFNAME | tr / -`
ARCHIVE_NAME={name}-{branch-designator}
fi
drush make build-groups.make dist
tar -czf $ARCHIVE_NAME.tar.gz dist/
mv $ARCHIVE_NAME.tar.gz dist/
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: './reports/**'
keep-hierarchy: true
copy-after-failure: true
- tarball:
project: '{name}'
site: '{tarball-site}'