<commit_before>@echo off
:: Build the source code for all of the projects (SDK, Documentation, Unit Tests)
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild smartsheet-csharp-sdk.sln /property:Configuration=release /t:rebuild
if not "%errorlevel%"=="0" goto buildFailure


:: Run unit tests
"C:\Program Files (x86)\NUnit 2.6.3\bin\nunit-console.exe" TestSDK/bin/Release/TestSDK.dll /stoponerror 
if not "%errorlevel%"=="0" goto nunitFailure

:: package for nuget
nuget pack Smartsheet-csharp-sdk.csproj -sym -IncludeReferencedProjects -Prop Configuration=Release
if not "%errorlevel%"=="0" goto nugetFailure

:: Copy documentation to the git directory
xcopy documentation\Website\* documentation\git-docs /E /Y
cd documentation\git-docs\
:: Push the docs to github.io
git add *
git commit -m "Updating Docs"
git push
cd ..\..\

echo "==================================================="
echo "Now make it live on nuget with a command such as: "
echo "nuget push smartsheet-csharp-sdk.1.0.0.0.nupkg"
echo "==================================================="

:: zip dll's
:: push zip file somewhere so people can easily download? or does github give an easy to use link?

:: push docs to github.io

exit /b 0
:: Failure Cases
:buildFailure<commit_msg>Updated batch file.<commit_after>@echo off
:: Build the source code for all of the projects (SDK, Documentation, Unit Tests)
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild smartsheet-csharp-sdk.sln /property:Configuration=release /t:rebuild
if not "%errorlevel%"=="0" goto buildFailure


:: Run unit tests
"C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console.exe" TestSDK/bin/Release/TestSDK.dll /stoponerror 
if not "%errorlevel%"=="0" goto nunitFailure

:: package for nuget
nuget pack Smartsheet-csharp-sdk.csproj -sym -IncludeReferencedProjects -Prop Configuration=Release
if not "%errorlevel%"=="0" goto nugetFailure

:: Copy documentation to the git directory
xcopy documentation\Website\* documentation\git-docs\ /E /Y
cd documentation\git-docs\
:: Push the docs to github.io
git add *
git commit -m "Updating Docs"
git push
cd ..\..\

echo "==================================================="
echo "Now make it live on nuget with a command such as: "
echo "nuget push smartsheet-csharp-sdk.1.0.0.0.nupkg"
echo "==================================================="

:: zip dll's
:: push zip file somewhere so people can easily download? or does github give an easy to use link?

:: push docs to github.io

exit /b 0
:: Failure Cases
:buildFailure
{'fraction_non_alphanumeric': 0.1894150417827298, 'fraction_numerical': 0.01591723040191007, 'mean_word_length': 4.971496437054632, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3886552', 'n_tokens_mistral': 822, 'n_tokens_neox': 749, 'n_words': 259}