diff --git a/appveyor.yml b/appveyor.yml index 0700c4c2..bffd7a14 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,33 +4,38 @@ image: Visual Studio 2019 Preview configuration: Release install: - - ps: dotnet --info - - ps: choco install gitversion.portable -pre -y - - ps: choco install codecov + - dotnet --info + - choco install gitversion.portable -pre -y + - choco install codecov before_build: - - ps: gitversion /l console /output buildserver /updateAssemblyInfo /diag - - ps: msbuild /t:Clean /v:m - - ps: msbuild /t:Restore /v:m + - gitversion /l console /output buildserver /updateAssemblyInfo /diag + - msbuild /t:Clean /v:m + - msbuild /t:Restore /v:m build: verbosity: minimal +after_build: + - dotnet publish -c Release -o ./singleExe .\src\ModSink.WPF\ModSink.WPF.csproj + artifacts: -- path: src/ModSink.WPF/bin/Release/netcoreapp3.0 - name: ModSink.WPF + - path: src/ModSink.WPF/bin/Release/netcoreapp3.0 + name: ModSink.WPF + - path: singleExe/ModSink.WPF.exe + name: ModSink.WPF.exe test_script: -- cmd: dotnet test "src\ModSink.Common.Tests\ModSink.Common.Tests.csproj" --configuration Release --no-build /p:AltCover=true /p:AltCoverForce=true -- cmd: codecov -f "src\ModSink.Common.Tests\coverage.xml" -- cmd: dotnet test "src\ModSink.UI.Tests\ModSink.UI.Tests.csproj" --configuration Release --no-build /p:AltCover=true /p:AltCoverForce=true -- cmd: codecov -f "src\ModSink.UI.Tests\coverage.xml" + - dotnet test "src\ModSink.Common.Tests\ModSink.Common.Tests.csproj" --configuration Release /p:AltCover=true /p:AltCoverForce=true + - codecov -f "src\ModSink.Common.Tests\coverage.xml" + - dotnet test "src\ModSink.UI.Tests\ModSink.UI.Tests.csproj" --configuration Release /p:AltCover=true /p:AltCoverForce=true + - codecov -f "src\ModSink.UI.Tests\coverage.xml" deploy: -- provider: GitHub - auth_token: - secure: TLChfAMJcjhyw7dQ6WNllA/sc420Hq4fk9V9/VUD1kFOm4ZJpfiBlwaqdVRPbQeP - artifact: ModSink.WPF - prerelease: true - on: - branch: master + - provider: GitHub + auth_token: + secure: TLChfAMJcjhyw7dQ6WNllA/sc420Hq4fk9V9/VUD1kFOm4ZJpfiBlwaqdVRPbQeP + artifact: ModSink.WPF + prerelease: true + on: + branch: master diff --git a/src/ModSink.WPF/ModSink.WPF.csproj b/src/ModSink.WPF/ModSink.WPF.csproj index 8cdbe6a3..eae83c17 100644 --- a/src/ModSink.WPF/ModSink.WPF.csproj +++ b/src/ModSink.WPF/ModSink.WPF.csproj @@ -10,7 +10,8 @@ latest true modsink_x3S_icon.ico - AnyCPU + win10-x64 + true @@ -43,4 +44,4 @@ - \ No newline at end of file +