forked from fedora-modularity/check_modulemd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruntask.yml
77 lines (68 loc) · 2.09 KB
/
runtask.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: checkmodulemd
namespace: dist
desc: download modulemd and run validity checks upon it
maintainer: merlinm
input:
args:
- dist_git_commit
environment:
rpm:
- python2-pdc-client
- python2-aexpect
- python2-modulemd
- python2-requests
- python2-enchant
- hunspell-en-US
actions:
- name: install avocado from updates-testing
shell:
- >-
dnf install -y --enablerepo=updates-testing
python2-avocado python2-avocado-plugins-varianter-yaml-to-mux
# NOTE: temporary until the package is in Fedora proper
# updates-testing needs to be enabled as mtf installs avocado packages
- name: install modularity-testing-framework
shell:
- dnf copr -y enable phracek/Modularity-testing-framework
- >-
dnf install --best -y --enablerepo=updates-testing
modularity-testing-framework
- name: split the given commit identifier into useful pieces
python:
file: split_string.py
callable: run
string: ${dist_git_commit}
export: c
- name: download the modulemd file
distgit:
package: ${c.name}
gitref: ${c.gitref}
# This will always be modules/ ...
namespace: ${c.namespace}
baseurl: https://src.fedoraproject.org
path:
- ${c.name}.yaml
localpath:
- download/${c.name}.yaml
- name: run avocado modulemd validity test
shell:
- ignorereturn:
- [
avocado, run, check_modulemd.py,
--job-results-dir, "${workdir}",
--mux-inject,
'run:modulemd:${workdir}/download/${c.name}.yaml',
]
- name: process avocado run output, for resultsdb
python:
file: process_avocado_results.py
callable: run
item: ${dist_git_commit}
item_type: dist_git_commit
checkname: modulemd
workdir: ${workdir}
artifactsdir: ${artifactsdir}
export: output
- name: report results to resultsdb
resultsdb:
results: ${output}