-
Notifications
You must be signed in to change notification settings - Fork 107
/
tasks.json
42 lines (42 loc) · 1.69 KB
/
tasks.json
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
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Pytest",
"type": "shell",
"command": "mkdir -p test_results && pytest --junitxml=${workspaceFolder}/test_results/pytest_results.xml"
},
{
"label": "Pylint junit",
"type": "shell",
"command": "mkdir -p test_results && pylint --rcfile .pylintrc ./cli ./tests --output ${workspaceFolder}/test_results/pylint_results.xml"
},
{
"label": "Pylint terminal",
"type": "shell",
"command": "pylint --rcfile .pylintrc ./cli ./tests --output-format text"
},
{
"label": "Ansible-lint junit",
"type": "shell",
"command": "mkdir -p test_results && ansible-lint --nocolor -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml > ${workspaceFolder}/test_results/ansiblelint_results.txt ; ansible-lint-to-junit-xml ${workspaceFolder}/test_results/ansiblelint_results.txt > ${workspaceFolder}/test_results/ansiblelint_results.xml"
},
{
"label": "Ansible-lint terminal",
"type": "shell",
"command": "ansible-lint -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml"
},
{
"label": "Rubocop junit",
"type": "shell",
"command": "mkdir -p test_results && rubocop -c .rubocop.yml --require rubocop/formatter/junit_formatter --format RuboCop::Formatter::JUnitFormatter --out test_results/rubocop_results.xml"
},
{
"label": "Rubocop terminal",
"type": "shell",
"command": "rubocop -c .rubocop.yml"
}
]
}