Skip to content

Commit

Permalink
restore the NoPackage switch for VSO signing build
Browse files Browse the repository at this point in the history
  • Loading branch information
analogrelay committed Feb 16, 2016
1 parent 9c7ec89 commit 8fedd2a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
22 changes: 20 additions & 2 deletions scripts/ci_build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,27 @@ REM Copyright (c) .NET Foundation and contributors. All rights reserved.
REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

set CI_BUILD=1
set CONFIGURATION=%1
set VERBOSE=1

CALL %~dp0..\build.cmd %2
REM Shift breaks %~dp0 so capture it first
set MY_DIR=%~dp0

REM Parse arguments
:loop
IF NOT "%1"=="" (
IF "%1"=="-NoPackage" (
SET DOTNET_BUILD_SKIP_PACKAGING=1
) ELSE IF "%CONFIGURATION%"=="" (
SET CONFIGURATION=%1
) ELSE IF "%TARGETS%"=="" (
SET TARGETS=%1
) ELSE (
SET TARGETS=%TARGETS% %1
)
SHIFT
GOTO :loop
)

CALL %MY_DIR%..\build.cmd %TARGETS%

exit /b %errorlevel%
6 changes: 6 additions & 0 deletions scripts/dotnet-cli-build/PublishTargets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public static class PublishTargets
[Target(nameof(PrepareTargets.Init))]
public static BuildTargetResult Publish(BuildTargetContext c)
{
if (string.Equals(Environment.GetEnvironmentVariable("DOTNET_BUILD_SKIP_PACKAGING"), "1", StringComparison.Ordinal))
{
c.Info("Skipping packaging because DOTNET_BUILD_SKIP_PACKAGING is set");
return c.Success();
}

// NOTE(anurse): Currently, this just invokes the remaining build scripts as-is. We should port those to C# as well, but
// I want to get the merged in.

Expand Down

0 comments on commit 8fedd2a

Please sign in to comment.