Last active
April 28, 2019 02:19
-
-
Save sl/487c08d95b5839f264cf17301a1bceda to your computer and use it in GitHub Desktop.
[Swift Compiler Environment Configuration] Full Tasks.json Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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