Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Entire Project into .NET Standard (#284)
* Completely refactored the entire solution to just be one .NET Standard 2 project with a unit test. * Updated dependencies to fix the issue pointed out by @danibjor, and re-added support for AppVeyor through the use of OpenCover. * Attempted to make AppVeyor support work properly. * Added AppVeyor code coverage analysis support. * Added AppVeyor Console unit testing support. * Corrected syntax formatting across all files in the Parse project, added NuGet package metadata to the Parse project because NuSpec file metadata declaration not supported for .NET Standard projects, added XML code documentation, and modified the AppVeyor configuration to upload the build-created NuGet package to the build console as an artifact.
- Loading branch information
Showing
645 changed files
with
19,249 additions
and
43,917 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
version: '1.7.{build}' | ||
image: Visual Studio 2015 | ||
version: '2.0.0-{build}' | ||
image: Visual Studio 2017 | ||
before_build: | ||
- nuget restore Parse.sln | ||
build_script: | ||
- msbuild /verbosity:quiet "Parse.sln" | ||
project: Parse.sln | ||
verbosity: minimal | ||
before_test: | ||
- choco install opencover.portable | ||
- choco install codecov | ||
test_script: | ||
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -target:nunit-console.exe -register:user -targetargs:""C:\projects\parse-sdk-dotnet\ParseAnalytics\Test\bin\Debug\ParseAnalytics.Test.Unit.NetFx45.dll" "C:\projects\parse-sdk-dotnet\ParseCommon\Test\bin\Debug\ParseCommon.Test.Unit.NetFx45.dll" "C:\projects\parse-sdk-dotnet\ParseCore\Test\bin\Debug\ParseTest.Unit.NetFx45.dll" "C:\projects\parse-sdk-dotnet\ParsePush\Test\bin\Debug\ParseTest.Unit.NetFx45.dll" /noshadow" -filter:"" -output:parse_sdk_dotnet_coverage.xml | ||
- OpenCover.Console.exe -target:dotnet.exe -targetargs:"test --test-adapter-path:. --logger:Appveyor /p:DebugType=full .\Parse.Test\Parse.Test.csproj" -filter:"+[Parse*]* -[Parse.Test*]*" -oldstyle -output:parse_sdk_dotnet_coverage.xml -register:user | ||
after_test: | ||
- ps: | | ||
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH | ||
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh | ||
bash codecov.sh -f "parse_sdk_dotnet_coverage.xml" | ||
- codecov -f "parse_sdk_dotnet_coverage.xml" | ||
artifacts: | ||
- path: '**\*.nupkg' | ||
name: Parse NuGet Package |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Set default behavior for command prompt diff. | ||
# | ||
# This is need for earlier builds of msysgit that does not have it on by | ||
# default for csharp files. | ||
# Note: This is only used by command line | ||
############################################################################### | ||
#*.cs diff=csharp | ||
|
||
############################################################################### | ||
# Set the merge driver for project and solution files | ||
# | ||
# Merging from the command prompt will add diff markers to the files if there | ||
# are conflicts (Merging from VS is not affected by the settings below, in VS | ||
# the diff markers are never inserted). Diff markers may cause the following | ||
# file extensions to fail to load in VS. An alternative would be to treat | ||
# these files as binary and thus will always conflict and require user | ||
# intervention with every merge. To do so, just uncomment the entries below | ||
############################################################################### | ||
#*.sln merge=binary | ||
#*.csproj merge=binary | ||
#*.vbproj merge=binary | ||
#*.vcxproj merge=binary | ||
#*.vcproj merge=binary | ||
#*.dbproj merge=binary | ||
#*.fsproj merge=binary | ||
#*.lsproj merge=binary | ||
#*.wixproj merge=binary | ||
#*.modelproj merge=binary | ||
#*.sqlproj merge=binary | ||
#*.wwaproj merge=binary | ||
|
||
############################################################################### | ||
# behavior for image files | ||
# | ||
# image files are treated as binary by default. | ||
############################################################################### | ||
#*.jpg binary | ||
#*.png binary | ||
#*.gif binary | ||
|
||
############################################################################### | ||
# diff behavior for common document formats | ||
# | ||
# Convert binary document formats to text before diffing them. This feature | ||
# is only available from the command line. Turn it on by uncommenting the | ||
# entries below. | ||
############################################################################### | ||
#*.doc diff=astextplain | ||
#*.DOC diff=astextplain | ||
#*.docx diff=astextplain | ||
#*.DOCX diff=astextplain | ||
#*.dot diff=astextplain | ||
#*.DOT diff=astextplain | ||
#*.pdf diff=astextplain | ||
#*.PDF diff=astextplain | ||
#*.rtf diff=astextplain | ||
#*.RTF diff=astextplain |
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.