Skip to content

Commit

Permalink
Merge pull request #965 from SubPointSolutions/dev
Browse files Browse the repository at this point in the history
SPMeta2 1.3.0 beta build
  • Loading branch information
SubPointSupport authored Feb 27, 2017
2 parents d46b497 + 29242c1 commit f99d3ab
Show file tree
Hide file tree
Showing 69 changed files with 3,395 additions and 804 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,4 @@ FakesAssemblies/
/SPMeta2.v2.ncrunchsolution
/SPMeta2/SPMeta2.Standard/SPMeta2.Standard.csproj.DotSettings
/SPMeta2/SPMeta2/SPMeta2.csproj.DotSettings
/SPMeta2/SubPointSolutions.Docs/Views-Output
2 changes: 1 addition & 1 deletion SPMeta2.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_3rd party", "_3rd party", "{EE9BD842-2CA9-45B2-AB7C-A8EB0353AAB7}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
appveyor-v12.yml = appveyor-v12.yml
appveyor.yml = appveyor.yml
README.md = README.md
SPMeta2.snk = SPMeta2.snk
Expand Down Expand Up @@ -284,7 +285,6 @@ Global
{0DE538C9-1723-46B1-90F8-5DC67C56D7DD}.Debug45|Any CPU.ActiveCfg = Debug|Any CPU
{0DE538C9-1723-46B1-90F8-5DC67C56D7DD}.Debug45|Any CPU.Build.0 = Debug|Any CPU
{B30F6CA8-3E96-4734-B6B1-A61F201099E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B30F6CA8-3E96-4734-B6B1-A61F201099E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B30F6CA8-3E96-4734-B6B1-A61F201099E4}.Debug40|Any CPU.ActiveCfg = Debug|Any CPU
{B30F6CA8-3E96-4734-B6B1-A61F201099E4}.Debug40|Any CPU.Build.0 = Debug|Any CPU
{B30F6CA8-3E96-4734-B6B1-A61F201099E4}.Debug45|Any CPU.ActiveCfg = Debug|Any CPU
Expand Down
14 changes: 13 additions & 1 deletion SPMeta2/Build/Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,20 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="build.cake" />
<None Include="build.ps1" />
<None Include="build.cake" />
<None Include="build-v12.cake" />
<None Include="build.json" />
<None Include="build-v12.ps1" />
<None Include="Pester\pester.run.ps1" />
<None Include="Pester\regression.nuget.ps1" />
<None Include="Pester\_install.ps1" />
<None Include="tools\nuget.config" />
<None Include="tools\packages.config" />
<None Include="tools\packages.config.md5sum" />
</ItemGroup>
<ItemGroup>
<Content Include="tools\nuget.exe" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
4 changes: 4 additions & 0 deletions SPMeta2/Build/Pester/_install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# initial Pester install
Write-Host "Checking Pester install..." -fore Green
Install-Module -Name Pester -RequiredVersion 4.0.2
32 changes: 32 additions & 0 deletions SPMeta2/Build/Pester/pester.run.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

Write-Host "Running pester regression..."
$results = Invoke-Pester -Script Pester/regression.nuget.ps1 -PassThru -Quiet

$failedCount = 0;
$passedCount = 0;

foreach($r in $results.TestResult) {

Write-Host "- Test [$($r.Name)] with result:[$($r.Result)]"

switch($r.Result) {
"Failed" {
$failedCount++
};
"Passed" {
$passedCount++
};
}
}

Write-Host "- Failed count:[$failedCount]"
Write-Host "- Passed count:[$passedCount]"

if($failedCount -gt 0) {
throw "[FAIL] Didn't pass Pester regression. Failed tests count:[$failedCount]"
}
else{
if($passedCount -le 0) {
throw "[FAIL] Weird. No tests were passed. Check it, please?"
}
}
Loading

0 comments on commit f99d3ab

Please sign in to comment.