-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added base project setup for testing
- Loading branch information
Showing
6 changed files
with
108 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: '0.1.0+{build}' | ||
image: Visual Studio 2017 | ||
skip_branch_with_pr: true | ||
branches: | ||
only: | ||
- master | ||
skip_commits: | ||
files: | ||
- '**/*.md' | ||
|
||
build: | ||
verbosity: minimal | ||
install: | ||
- choco install opencover codecov | ||
|
||
|
||
build_script: | ||
- dotnet build -c Release | ||
- dotnet pack --no-build -c Release /p:PackageOutputPath=..\..\.nupkgs | ||
test_script: | ||
- OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test tests/InfinityCrawler.Tests/InfinityCrawler.Tests.csproj /p:DebugType=Full" -filter:"+[InfinityCrawler]* -[InfinityCrawler.Tests]*" -output:".\coverage.xml" -oldstyle | ||
- codecov -f coverage.xml | ||
|
||
|
||
artifacts: | ||
- path: '.nupkgs\*.nupkg' | ||
|
||
- path: coverage.xml | ||
name: Coverage Report |
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 @@ | ||
comment: off |
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,37 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<VersionPrefix>0.1.0</VersionPrefix> | ||
|
||
<RootNamespace>InfinityCrawler</RootNamespace> | ||
|
||
<Company>Turner Software</Company> | ||
|
||
<PackageId>$(AssemblyName)</PackageId> | ||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||
<PackageLicenseUrl>https://github.com/TurnerSoftware/InfinityCrawler/blob/master/LICENSE</PackageLicenseUrl> | ||
<PackageProjectUrl>https://github.com/TurnerSoftware/InfinityCrawler</PackageProjectUrl> | ||
<PackageBaseTags>crawler;robot;spider</PackageBaseTags> | ||
|
||
<RepositoryUrl>https://github.com/TurnerSoftware/InfinityCrawler.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryBranch>master</RepositoryBranch> | ||
|
||
<!-- SourceLink Support --> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
|
||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>embedded</DebugType> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)' == 'Debug' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="1.3.2" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="1.3.2" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace InfinityCrawler.Tests | ||
{ | ||
[TestClass] | ||
public class UnitTest1 | ||
{ | ||
[TestMethod] | ||
public void TestMethod1() | ||
{ | ||
} | ||
} | ||
} |