This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from enricosada/rc3_cleanups
- Loading branch information
Showing
154 changed files
with
7,526 additions
and
619 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@echo off | ||
|
||
powershell -NoProfile -NoLogo -Command "%~dp0scripts\build.ps1 %*; exit $LastExitCode;" | ||
powershell -NoProfile -NoLogo -Command "%~dp0\run-build.ps1 %*; exit $LastExitCode;" | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<Project ToolsVersion="15.0"> | ||
|
||
<Target Name="Package" | ||
DependsOnTargets="RestoreSrcPackages"> | ||
|
||
<Exec Command='dotnet pack --no-build --output "$(ArtifactsDir)/nupkgs" /p:Version=$(FSharpSdkVersion)' | ||
WorkingDirectory="$(RepoRoot)/src/FSharp.Sdk"/> | ||
|
||
<Exec Command='dotnet pack --no-build --output "$(ArtifactsDir)/nupkgs" /p:Version=$(FSharpNETSdkVersion)' | ||
WorkingDirectory="$(RepoRoot)/src/FSharp.NET.Sdk"/> | ||
</Target> | ||
|
||
<Target Name="SetupRestoreSrcPackagesInputsOutputs"> | ||
<!-- List of test projects to restore --> | ||
|
||
<ItemGroup> | ||
<RestoreSrcPackagesInput Include="$(RepoRoot)/src/FSharp.NET.Sdk/FSharp.NET.Sdk.csproj" /> | ||
<RestoreSrcPackagesInput Include="$(RepoRoot)/src/FSharp.Sdk/FSharp.Sdk.csproj" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="RestoreSrcPackages" | ||
DependsOnTargets="SetupRestoreSrcPackagesInputsOutputs" | ||
Inputs="@(RestoreSrcPackagesInput)" | ||
Outputs="@(RestoreSrcPackagesInput->'%(RelativeDir)/obj/project.assets.json');@(RestoreSrcPackagesInput->'%(RelativeDir)/obj/%(Filename).csproj.nuget.g.props')"> | ||
<!-- Restore test projects, if needed (with lock files up-to-date check) --> | ||
|
||
<Exec Command='dotnet restore "%(RestoreSrcPackagesInput.FullPath)" --packages "$(NuGetPackageRoot)" --no-cache -v n"' /> | ||
</Target> | ||
|
||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<Project ToolsVersion="15.0"> | ||
|
||
<Target Name="Test" | ||
DependsOnTargets="Package;RestoreTestPackages;PrepareTestSuite"> | ||
|
||
<PropertyGroup> | ||
<_CommandText><![CDATA[ | ||
set TEST_SUITE_FSHARP_NET_SDK_PKG_VERSION=$(FSharpNETSdkVersionToTest) | ||
dotnet test -c $(Configuration) --logger trx | ||
]]></_CommandText> | ||
</PropertyGroup> | ||
|
||
<Exec Command="$(_CommandText)" | ||
WorkingDirectory="$(RepoRoot)/test/dotnet-new.Tests" /> | ||
|
||
</Target> | ||
|
||
<Target Name="PrepareTestSuite"> | ||
<!--Cleanup nuget cache, and move nupkg under test in 'packagesToTest' directory--> | ||
|
||
<PropertyGroup> | ||
<FSharpSdkVersionToTest>$(FSharpSdkVersion)</FSharpSdkVersionToTest> | ||
<FSharpNETSdkVersionToTest>$(FSharpNETSdkVersion)</FSharpNETSdkVersionToTest> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<_NupkgsToTest Include="$(ArtifactsDir)/nupkgs/FSharp.Sdk.$(FSharpSdkVersionToTest).nupkg" /> | ||
<_NupkgsToTest Include="$(ArtifactsDir)/nupkgs/FSharp.NET.Sdk.$(FSharpNETSdkVersionToTest).nupkg" /> | ||
</ItemGroup> | ||
|
||
<!--Add nupkgs under test in 'packagesToTest' directory--> | ||
<RemoveDir Directories="$(RepoRoot)/test/packagesToTest" /> | ||
|
||
<Copy SourceFiles="@(_NupkgsToTest)" | ||
DestinationFolder="$(RepoRoot)/test/packagesToTest" /> | ||
|
||
<!--Remove nupkgs from test suite cache--> | ||
<RemoveDir Directories="$(RepoRoot)/test/packages/fsharp.sdk" /> | ||
<RemoveDir Directories="$(RepoRoot)/test/packages/fsharp.net.sdk" /> | ||
<RemoveDir Directories="$(RepoRoot)/test/packages/dotnet-compile-fsc" /> | ||
</Target> | ||
|
||
<Target Name="SetupRestoreTestPackagesInputsOutputs"> | ||
<!-- List of test projects to restore --> | ||
|
||
<ItemGroup> | ||
<RestoreTestPackagesInput Include="$(RepoRoot)/test/dotnet-new.Tests/dotnet-new.Tests.csproj" /> | ||
<RestoreTestPackagesInput Include="$(RepoRoot)/test/Microsoft.DotNet.Cli.Utils/Microsoft.DotNet.Cli.Utils.csproj" /> | ||
<RestoreTestPackagesInput Include="$(RepoRoot)/test/Microsoft.DotNet.Tools.Tests.Utilities/Microsoft.DotNet.Tools.Tests.Utilities.csproj" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="RestoreTestPackages" | ||
DependsOnTargets="SetupRestoreTestPackagesInputsOutputs" | ||
Inputs="@(RestoreTestPackagesInput)" | ||
Outputs="@(RestoreTestPackagesInput->'%(RelativeDir)/obj/project.assets.json');@(RestoreTestPackagesInput->'%(RelativeDir)/obj/%(Filename).csproj.nuget.g.props')"> | ||
<!-- Restore test projects, if needed (with lock files up-to-date check) --> | ||
|
||
<Exec Command='dotnet restore "%(RestoreTestPackagesInput.FullPath)" --packages "$(NuGetPackageRoot)" --no-cache -v n"' /> | ||
</Target> | ||
|
||
|
||
</Project> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"version": "1.0.0-*", | ||
"buildOptions": { | ||
"debugType": "portable", | ||
"emitEntryPoint": true, | ||
"compilerName": "fsc", | ||
"compile": { | ||
"includeFiles": [ | ||
"Program.fs" | ||
] | ||
} | ||
}, | ||
"tools": { | ||
"dotnet-compile-fsc": "1.0.0-preview2.1-*" | ||
}, | ||
"frameworks": { | ||
"netcoreapp1.1": { | ||
"dependencies": { | ||
"Microsoft.NETCore.App": { | ||
"type": "platform", | ||
"version": "1.1.0" | ||
}, | ||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-160629" | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
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
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
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
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
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
Oops, something went wrong.