-
Notifications
You must be signed in to change notification settings - Fork 0
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 #6 from hlotyaks/task/add-package-hasher
Task/add package hasher
- Loading branch information
Showing
9 changed files
with
171 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.26124.0 | ||
MinimumVisualStudioVersion = 15.0.26124.0 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackageBuilder", "src\PackageBuilder.csproj", "{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tests", "tests\tests.csproj", "{662F222A-57E6-47F8-B7D1-F425DC50254F}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Debug|x64.Build.0 = Debug|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Debug|x86.Build.0 = Debug|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Release|x64.ActiveCfg = Release|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Release|x64.Build.0 = Release|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Release|x86.ActiveCfg = Release|Any CPU | ||
{90D2F559-6EEA-4FE6-8CB3-79A3090CCC61}.Release|x86.Build.0 = Release|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Debug|x64.Build.0 = Debug|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Debug|x86.Build.0 = Debug|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Release|x64.ActiveCfg = Release|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Release|x64.Build.0 = Release|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Release|x86.ActiveCfg = Release|Any CPU | ||
{662F222A-57E6-47F8-B7D1-F425DC50254F}.Release|x86.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
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,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace PackageAnalyzer | ||
{ | ||
public class PackageBuilder | ||
{ | ||
// location relative to specified rootFolder. | ||
const string PACKAGE_DESCRIPTIONS = "packages//descriptions"; | ||
const string PACKAGE_CACHE = "packages//cache"; | ||
const string PACKAGE_SOURCE = "src"; | ||
const string PACKAGE_OUTPUT = "output"; | ||
|
||
|
||
|
||
public List<string> Build(string start, string rootFolder) | ||
{ | ||
List<string> builtPackages = new List<string>(); | ||
|
||
return builtPackages; | ||
} | ||
} | ||
} |
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,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</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,24 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System.IO; | ||
using System.Collections.Generic; | ||
|
||
namespace PackageAnalyzer.Tests | ||
{ | ||
[TestClass] | ||
public class PackageBuilderTests | ||
{ | ||
[TestMethod] | ||
public void SimpleBuilderTest1() | ||
{ | ||
PackageBuilder pb = new PackageBuilder(); | ||
|
||
string cwd = Directory.GetCurrentDirectory(); | ||
|
||
DirectoryInfo di = new DirectoryInfo($"{cwd}\\testcases\\simple1"); | ||
|
||
List<string> buildResults = pb.Build("A", di.FullName); | ||
|
||
Assert.AreEqual(0, buildResults.Count); | ||
} | ||
} | ||
} |
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,24 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" /> | ||
<PackageReference Include="coverlet.collector" Version="1.0.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\src\PackageBuilder.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="testcases\**\*.*" CopyToOutputDirectory="PreserveNewest" /> | ||
</ItemGroup> | ||
|
||
</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