From efbb373630738a2474e3dea894c434acc84cecb0 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Tue, 20 Aug 2019 09:29:39 +0200 Subject: [PATCH] SEBWIN-338: Setting up new release build server. --- appveyor-release.yml | 30 ++++++++++++++++++++++++++++++ appveyor.yml => appveyor-test.yml | 26 ++------------------------ 2 files changed, 32 insertions(+), 24 deletions(-) create mode 100644 appveyor-release.yml rename appveyor.yml => appveyor-test.yml (74%) diff --git a/appveyor-release.yml b/appveyor-release.yml new file mode 100644 index 00000000..eed997df --- /dev/null +++ b/appveyor-release.yml @@ -0,0 +1,30 @@ +version: '3.0.0.{build}' +image: Visual Studio 2017 +platform: x86 +configuration: Release +assembly_info: + patch: true + file: AssemblyInfo.* + assembly_version: '{version}' + assembly_file_version: '{version}' + assembly_informational_version: '3.0.0 Base' +before_build: + - nuget restore +build_script: + - msbuild /verbosity:minimal "SafeExamBrowser.sln" +after_build: + - appveyor PushArtifact "Setup\bin\%CONFIGURATION%\Setup.msi" -FileName "SEB_%APPVEYOR_BUILD_VERSION%_Setup.msi" -DeploymentName "SEB_%APPVEYOR_BUILD_VERSION%_Setup" + - appveyor PushArtifact "SetupBundle\bin\%CONFIGURATION%\SetupBundle.exe" -FileName "SEB_%APPVEYOR_BUILD_VERSION%_SetupBundle.exe" -DeploymentName "SEB_%APPVEYOR_BUILD_VERSION%_SetupBundle" +artifacts: + - path: SafeExamBrowser.Runtime\bin\$(platform)\$(configuration) + name: 'SEB_$(appveyor_build_version)_Application' + type: zip + - path: SebWindowsConfig\bin\$(platform)\$(configuration) + name: 'SEB_$(appveyor_build_version)_Configuration' + type: zip + - path: SafeExamBrowser.ResetUtility\bin\$(platform)\$(configuration) + name: 'SEB_$(appveyor_build_version)_Reset' + type: zip + - path: SafeExamBrowser.Service\bin\$(platform)\$(configuration) + name: 'SEB_$(appveyor_build_version)_Service' + type: zip diff --git a/appveyor.yml b/appveyor-test.yml similarity index 74% rename from appveyor.yml rename to appveyor-test.yml index 7b4b00f0..9f60ff03 100644 --- a/appveyor.yml +++ b/appveyor-test.yml @@ -1,20 +1,11 @@ -version: '3.0.0.{build}' +version: {build} image: Visual Studio 2017 platform: x86 -configuration: Release -assembly_info: - patch: true - file: AssemblyInfo.* - assembly_version: '{version}' - assembly_file_version: '{version}' - assembly_informational_version: '3.0.0 Base' +configuration: Debug before_build: - nuget restore build_script: - msbuild /verbosity:minimal "SafeExamBrowser.sln" -after_build: - - appveyor PushArtifact "Setup\bin\%CONFIGURATION%\Setup.msi" -FileName "SEB_%APPVEYOR_BUILD_VERSION%_Setup.msi" -DeploymentName "SEB_%APPVEYOR_BUILD_VERSION%_Setup" - - appveyor PushArtifact "SetupBundle\bin\%CONFIGURATION%\SetupBundle.exe" -FileName "SEB_%APPVEYOR_BUILD_VERSION%_SetupBundle.exe" -DeploymentName "SEB_%APPVEYOR_BUILD_VERSION%_SetupBundle" test_script: - .\packages\OpenCover.4.7.922\tools\OpenCover.Console.exe -register -target:"vstest.console.exe" -targetargs:"/logger:Appveyor .\SafeExamBrowser.Client.UnitTests\bin\%PLATFORM%\%CONFIGURATION%\SafeExamBrowser.Client.UnitTests.dll" -filter:"+[*]* -[*.UnitTests]* -[*Moq*]*" -mergebyhash -output:"coverage.xml" - .\packages\OpenCover.4.7.922\tools\OpenCover.Console.exe -register -target:"vstest.console.exe" -targetargs:"/logger:Appveyor .\SafeExamBrowser.Communication.UnitTests\bin\%PLATFORM%\%CONFIGURATION%\SafeExamBrowser.Communication.UnitTests.dll" -filter:"+[*]* -[*.UnitTests]* -[*Moq*]*" -mergebyhash -mergeoutput -output:"coverage.xml" @@ -29,16 +20,3 @@ after_test: - "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%" - pip install codecov - codecov -f "coverage.xml" -X gcov -artifacts: - - path: SafeExamBrowser.Runtime\bin\$(platform)\$(configuration) - name: 'SEB_$(appveyor_build_version)_Application' - type: zip - - path: SebWindowsConfig\bin\$(platform)\$(configuration) - name: 'SEB_$(appveyor_build_version)_Configuration' - type: zip - - path: SafeExamBrowser.ResetUtility\bin\$(platform)\$(configuration) - name: 'SEB_$(appveyor_build_version)_Reset' - type: zip - - path: SafeExamBrowser.Service\bin\$(platform)\$(configuration) - name: 'SEB_$(appveyor_build_version)_Service' - type: zip