# This file is used by the jenkins job

# pep8 tox target
pep8:

    rpm_deps: []

    remove_rpm: []

    run:
        tox --sitepackages -v -e pep8 2>&1 | tee ../logs/testrun.log;


# Additional repository required to install testing dependencies
enable_repos: []


# Common rpm deps needed for all tester types (pep8 / unittest / functional)
rpm_deps: [
    git,
    python-tox,
    python-pluggy,
    python2-virtualenv,
    python-setuptools,
    python-jinja2,
    python-yaml,
    "{{ hostvars[inventory_hostname][tester.component.tox_target]['rpm_deps'] }}"
]


# The rpms that shouldn't be installed when running tests
remove_rpm: [
    "{{ hostvars[inventory_hostname][tester.component.tox_target]['remove_rpm'] }}"
]


# (N.B.) We truncate *requirements.txt to ensure we're only using installed
#        non-test packages.
openstack_tripleo_heat_templates_run_config:

  run: >
      set -o pipefail;
      rpm -qa | sort > ../logs/installed-rpms.log;
      truncate --size 0 requirements.txt;
      truncate --size 0 test-requirements.txt;
      {{ hostvars[inventory_hostname][tester.component.tox_target]['run'] }}


# NOTE: This is the main section. It must exist.
test_config:
  virt:
    RedHat-7:
      setup:
        enable_repos: "{{enable_repos}}"
        install: "{{rpm_deps}}"
        remove: "{{remove_rpm}}"
      run: "{{openstack_tripleo_heat_templates_run_config.run}}"

Add OSP 13 tripleo-heat-templates config based on OSP 12
Add OSP 13 tripleo-heat-templates config based on OSP 12

Change-Id: I6592656e2ed5739dd6719d11cc292a5a4c28e490
