19 lines
590 B
YAML
19 lines
590 B
YAML
|
---
|
||
|
- hosts: localhost
|
||
|
tags:
|
||
|
- classic
|
||
|
roles:
|
||
|
- role: standard-test-basic
|
||
|
vars:
|
||
|
- pkg: "{{playbook_dir|dirname|basename}}"
|
||
|
- develpkg: "{{pkg}}-devel"
|
||
|
- pkgname: "{{pkg|regex_replace('^ghc-(.*)$', '\\1')}}"
|
||
|
required_packages:
|
||
|
- "{{develpkg}}"
|
||
|
tests:
|
||
|
- ghc:
|
||
|
run: echo 'main = return ()' > test.hs; ghc -package {{pkgname}} test.hs; ./test
|
||
|
- revdeps:
|
||
|
run: revdeps=$(dnf -q repoquery --qf "%{name}" --whatrequires={{develpkg}}); if [ -z "${revdeps}" ]; then echo "No valid dependents"; exit 1; else dnf -y install ${revdeps}; fi
|
||
|
...
|