Add CI tests using the standard test interface

This commit is contained in:
Viktor Ashirov 2018-09-11 12:01:20 +02:00
parent 9d6a85b93c
commit 4aedd70f16

27
tests/tests.yml Normal file
View File

@ -0,0 +1,27 @@
---
- hosts: localhost
remote_user: root
vars:
ds_repo_url: https://pagure.io/389-ds-base.git
ds_repo_dir: ds
ds_tests: "{{ ds_repo_dir }}/dirsrvtests/tests"
pytest: py.test-3
pytest_args: "-v --continue-on-collection-errors"
pytest_tests: "suites/basic"
artifacts: ./artifacts
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "{{ ds_repo_url }}"
dest: "{{ ds_repo_dir }}"
tests:
- basic:
dir: "{{ ds_tests }}"
run: "{{ pytest }} {{ pytest_args }} {{ pytest_tests }}"
required_packages:
- python3-pytest
- 389-ds-base
- 389-ds-base-snmp
- 389-ds-base-legacy-tools