Skip to content

Instantly share code, notes, and snippets.

@sl sl/tasks.json
Last active Apr 28, 2019

Embed
What would you like to do?
[Swift Compiler Environment Configuration] Full Tasks.json Configuration
{
"version": "2.0.0",
"tasks": [
{
"label": "Ninja Build (Swift)",
"type": "shell",
"command": "ninja",
"args": [
"swift"
],
"options": {
"cwd": "${env:SWIFT_BUILD_DIR}"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Ninja Build (Swift IDE Test)",
"type": "shell",
"command": "ninja",
"args": [
"swift-ide-test"
],
"options": {
"cwd": "${env:SWIFT_BUILD_DIR}"
},
"group": "build"
},
{
"label": "Run Test",
"type": "shell",
"command": "${LLVM_LIT_DIR}/lit.py",
"args": [
"-sv",
"--param",
"swift_site_config=${SWIFT_BUILD_DIR}/test-macosx-x86_64/lit.site.cfg",
"${fileDirname}",
"--filter=${fileBasename}"
],
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Run All Tests",
"type": "shell",
"command": "${LLVM_LIT_DIR}/lit.py",
"args": [
"-sv",
"--param",
"swift_site_config=${SWIFT_BUILD_DIR}/test-macosx-x86_64/lit.site.cfg",
"${SWIFT_SOURCE_DIR}/test",
],
"group": "test"
},
{
"label": "Run Specific Test(s)",
"type": "shell",
"command": "${LLVM_LIT_DIR}/lit.py",
"args": [
"-sv",
"--param",
"swift_site_config=${SWIFT_BUILD_DIR}/test-macosx-x86_64/lit.site.cfg",
"${SWIFT_SOURCE_DIR}/test",
"--filter=${input:testFilter}"
],
"group": "test"
},
{
"label": "Format changes",
"type": "shell",
"command": "git",
"args": [
"clang-format",
"master"
]
}
],
"inputs": [
{
"id": "testFilter",
"type": "promptString",
"description": "Runs the specified lit tests."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.