Created
August 31, 2021 19:22
-
-
Save bdbaddog/c896f9264088f6173c38733b61f2d909 to your computer and use it in GitHub Desktop.
rob_B's stuff
This file contains 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
# -*- Python -*- | |
Import("env") | |
import os | |
env = env.Clone() # Private copy of environment | |
env.Replace(NUNITROOT='#Tools/NUnit/bin/netcoreapp3.1') | |
# Build test | |
project_name = 'NUnitCore.csproj' | |
d = env.Command('$BUILDDIR/Nunit', None, | |
Mkdir('$BUILDDIR/NUnit/')) | |
dotnet_command = '$DOTNET build -p:Platform=$MSVS_PLATFORM $BUILDDIR/NUnit/%s -c $STAGE' % project_name | |
srcs = [project_name, project_name.replace('.csproj', '.sln')] | |
srcnodes = env.Command('$BUILDDIR/NUnit/${SOURCE}', | |
env.Glob('../NUnit/*.cs'), | |
Copy('$TARGET', '$SOURCE')) | |
unittest = env.Command(['$BUILDDIR/NUnit/NUnitCore.dll', | |
'$BUILDDIR/NUnit/NUnitCore.xml'], | |
srcnodes, dotnet_command) | |
env.Depends(unittest, srcs) | |
env.Depends(unittest, env['GROUPS']['DotNETCore']) | |
Return('unittest') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment