Skip to content

Commit

Permalink
Format tasks.json
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Mar 18, 2022
1 parent 6032e1a commit 0cf44e9
Showing 1 changed file with 62 additions and 54 deletions.
116 changes: 62 additions & 54 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,64 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558 for the documentation about the tasks.json format
"problemMatcher": [],
"type": "shell",
"version": "2.0.0",
"tasks": [
{
"label": "Ensure test_results directory",
"command": "mkdir -p ${workspaceFolder}/test_results",
"presentation": {
"echo": false,
"reveal": "silent",
"showReuseMessage": false,
}
},
{
"label": "Pytest",
"command": "pytest --junitxml=${workspaceFolder}/test_results/pytest_results.xml",
"group": "test",
"dependsOn": ["Ensure test_results directory"],
},
{
"label": "Pylint junit",
"command": "pylint --rcfile .pylintrc ./cli ./tests --output ${workspaceFolder}/test_results/pylint_results.xml",
"dependsOn": ["Ensure test_results directory"],
"group": "test",
},
{
"label": "Pylint terminal",
"command": "pylint --rcfile .pylintrc ./cli ./tests --output-format text",
"group": "test",
},
{
"label": "Ansible-lint junit",
"command": "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",
"dependsOn": ["Ensure test_results directory"],
"group": "test",
},
{
"label": "Ansible-lint terminal",
"command": "ansible-lint -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml",
"group": "test",
},
{
"label": "Rubocop junit",
"command": "rubocop -c .rubocop.yml --require rubocop/formatter/junit_formatter --format RuboCop::Formatter::JUnitFormatter --out test_results/rubocop_results.xml",
"dependsOn": ["Ensure test_results directory"],
"group": "test",
},
{
"label": "Rubocop terminal",
"command": "rubocop -c .rubocop.yml",
"group": "test",
// See https://go.microsoft.com/fwlink/?LinkId=733558 for the documentation about the tasks.json format
"problemMatcher": [],
"type": "shell",
"version": "2.0.0",
"tasks": [
{
"label": "Ensure test_results directory",
"command": "mkdir -p ${workspaceFolder}/test_results",
"presentation": {
"echo": false,
"reveal": "silent",
"showReuseMessage": false,
}
]
}
},
{
"label": "Pytest",
"command": "pytest --junitxml=${workspaceFolder}/test_results/pytest_results.xml",
"group": "test",
"dependsOn": [
"Ensure test_results directory"
],
},
{
"label": "Pylint junit",
"command": "pylint --rcfile .pylintrc ./cli ./tests --output ${workspaceFolder}/test_results/pylint_results.xml",
"dependsOn": [
"Ensure test_results directory"
],
"group": "test",
},
{
"label": "Pylint terminal",
"command": "pylint --rcfile .pylintrc ./cli ./tests --output-format text",
"group": "test",
},
{
"label": "Ansible-lint junit",
"command": "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",
"dependsOn": [
"Ensure test_results directory"
],
"group": "test",
},
{
"label": "Ansible-lint terminal",
"command": "ansible-lint -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml",
"group": "test",
},
{
"label": "Rubocop junit",
"command": "rubocop -c .rubocop.yml --require rubocop/formatter/junit_formatter --format RuboCop::Formatter::JUnitFormatter --out test_results/rubocop_results.xml",
"dependsOn": [
"Ensure test_results directory"
],
"group": "test",
},
{
"label": "Rubocop terminal",
"command": "rubocop -c .rubocop.yml",
"group": "test",
}
]
}

0 comments on commit 0cf44e9

Please sign in to comment.