cockpit/tests/roles/standard-test-source/tasks/main.yml
Stef Walter d9a218b7d5 Initial smoke tests run from upstream Cockpit project
Later once the upstream no longer uses phantomjs, we should
be able to execute the entire integration test suite.

This includes the standard-test-overlay role, and the
standard-test-scripts role. These will be suggested to the
standard-test-roles repo.
2017-09-21 12:01:44 +02:00

31 lines
710 B
YAML

---
- name: Add executor host
add_host:
name: executor
ansible_connection: local
ansible_ssh_host: 127.0.0.1
ansible_ssh_connection: local
- name: Extract package source code
delegate_to: executor
block:
- name: Gather facts
setup:
delegate_facts: True
- name: Install requirements
package: name={{item}} state=present
with_items:
- fedpkg
# The dist doesn't actually matter here
- name: Download sources, extract, and strip leading path
shell: |
shopt -s dotglob
set -e
rm -rf {{ srcdir }}
fedpkg --release=master prep --builddir={{ srcdir }}
mv {{ srcdir }}/*/* {{ srcdir }}
args:
chdir: "{{playbook_dir}}/.."