Last active
July 11, 2017 15:11
-
-
Save Geri-Borbas/f941f2e85e12e7cc81c63ee2ac1354e5 to your computer and use it in GitHub Desktop.
Chain up multiple VS Code tasks (Build, Test) in tasks.json.
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": | |
[ | |
{ | |
"taskName": "Build", | |
"isBuildCommand": true, | |
"command": "/Applications/Unity/Unity.app/Contents/MonoBleedingEdge/bin/xbuild", | |
"args": | |
[ | |
"Project.sln", | |
"/property:GenerateFullPaths=true" | |
], | |
"showOutput": "silent", | |
"problemMatcher": "$msCompile" | |
}, | |
{ | |
"taskName": "Build EPPZ.Extensions.Test", | |
"command": "/Applications/Unity/Unity.app/Contents/MonoBleedingEdge/bin/xbuild", | |
"args": | |
[ | |
"Assets/Plugins/eppz!/Extensions/Test.csproj", | |
"/property:Configuration=Local", | |
"/property:GenerateFullPaths=true" | |
], | |
"showOutput": "always", | |
"problemMatcher": "$msCompile" | |
}, | |
{ | |
"taskName": "Test EPPZ.Extensions.Test", | |
"isShellCommand": true, | |
"command": "mono", | |
"dependsOn": [ "Build EPPZ.Extensions.Test" ], | |
"args": | |
[ | |
"/Users/eppz/Projects/Unity/Packages/NUnit/NUnit.ConsoleRunner.3.6.1/tools/nunit3-console.exe", | |
"bin/EPPZ.Extensions.Test.dll", | |
"--labels=All", | |
"--result=EPPZ.Extensions.Test.Result.xml" | |
], | |
"showOutput": "always" | |
}, | |
{ | |
"taskName": "Test", | |
"isShellCommand": true, | |
"isTestCommand": true, | |
"command": "echo", | |
"args": ["All done."], | |
"dependsOn": [ "Test (EPPZ.Extensions.Test)" ], | |
"showOutput": "always" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment