updating qa-stg01 buildmaster to do something more useful

This commit is contained in:
Tim Flink 2016-01-11 17:00:58 +00:00
parent 5403da98cf
commit cfbc2242cd
2 changed files with 14 additions and 2 deletions

View file

@ -159,7 +159,7 @@ c['schedulers'].append(ForceScheduler(
from buildbot.process.factory import BuildFactory from buildbot.process.factory import BuildFactory
from buildbot.steps.source.git import Git from buildbot.steps.source.git import Git
from buildbot.steps.shell import ShellCommand from buildbot.steps.shell import ShellCommand
from buildbot.process.properties import Interpolate from buildbot.process.properties import Property, Interpolate
{# {#
@ -192,7 +192,8 @@ def create_test_factory(repo_name, func=True):
method='clobber')) method='clobber'))
factory.addStep(ShellCommand(command=['virtualenv', '--system-site-packages', 'env'])) factory.addStep(ShellCommand(command=['virtualenv', '--system-site-packages', 'env']))
factory.addStep(ShellCommand(command=['bash', '-c', 'source env/bin/activate; pip install -r requirements.txt'])) factory.addStep(ShellCommand(command=['bash', '-c', 'source env/bin/activate; pip install -r requirements.txt']))
factory.addStep(ShellCommand(command=['bash', '-c', 'source env/bin/activate; TEST="true" py.test %s testing/' % '-F' if func else ''], name=repo_name)) factory.addStep(ShellCommand(command=['doit', 'test'])
factory.addStep(ShellCommand(command=['doit', Interpolate('basedir=/srv/static/%(prop:Project)s']))
return factory return factory

View file

@ -16,6 +16,17 @@
- moreutils - moreutils
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: ensure packages required for CI buildslave are installed (dnf)
dnf: name={{ item }} state=present enablerepo={{ extra_enablerepos }}
with_items:
- testcloud
- mash
- mock
- koji
- bodhi
- python-doit
when: deployment_type in ['qa-stg'] and ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: add the buildslave user - name: add the buildslave user
user: name=buildslave user: name=buildslave
when: deployment_type in ['prod', 'stg', 'local', 'qa-stg'] when: deployment_type in ['prod', 'stg', 'local', 'qa-stg']