@@ -39,6 +39,9 @@ build-release:
3939 - echo "Restoring NuGet Packages..."
4040 - ' c:\nuget\nuget.exe restore ProtonVpn.sln'
4141 - MSBuild.exe /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet "src\\ProtonVPN.MarkupValidator\\ProtonVPN.MarkupValidator.csproj"
42+ - echo "Building native dependencies..."
43+ - ' c:\nuget\nuget.exe restore ProtonVPN.InstallActions.sln'
44+ - cmd.exe /c BuildDependencies.bat
4245 - python ci\main.py lint-languages
4346 - python ci\main.py add-commit-hash $env:CI_COMMIT_SHORT_SHA
4447 - python ci\main.py defaultConfig
@@ -62,6 +65,9 @@ build-debug:
6265 - echo "Restoring NuGet Packages..."
6366 - ' c:\nuget\nuget.exe restore ProtonVpn.sln'
6467 - MSBuild.exe /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet "src\\ProtonVPN.MarkupValidator\\ProtonVPN.MarkupValidator.csproj"
68+ - echo "Building native dependencies..."
69+ - ' c:\nuget\nuget.exe restore ProtonVPN.InstallActions.sln'
70+ - cmd.exe /c BuildDependencies.bat
6571 - echo "Downloading translations from crowdin..."
6672 - python ci\main.py lint-languages
6773 - python ci\main.py add-commit-hash $env:CI_COMMIT_SHORT_SHA
8692 - echo "Running tests..."
8793 - ' c:\nuget\nuget.exe restore ProtonVpn.sln'
8894 - MSBuild.exe /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Debug /verbosity:quiet "ProtonVpn.sln"
89- - coverlet src\bin --target "vstest.console.exe" --targetargs "src/bin/ProtonVPN*Test *.dll /TestCaseFilter:TestCategory!=UI&TestCategory!=Connection /Platform:x64" --format cobertura --output .\coverage-reports --exclude "[*.Test *]*" --exclude "[ProtonVPN.MarkupValidator]*" --exclude "[TestTools*]*" --exclude "[TapInstaller]*" --exclude "[*.Installers]*"
95+ - coverlet src\bin --target "vstest.console.exe" --targetargs "src/bin/ProtonVPN*Tests *.dll /TestCaseFilter:TestCategory!=UI&TestCategory!=Connection /Platform:x64" --format cobertura --output .\coverage-reports --exclude "[*.Tests *]*" --exclude "[ProtonVPN.MarkupValidator]*" --exclude "[TestTools*]*" --exclude "[TapInstaller]*" --exclude "[*.Installers]*"
9096 - powershell -Command "(gc coverage-reports.cobertura.xml) -replace '\\', '/' | Out-File -encoding UTF8 cobertura.xml"
9197 - ReportGenerator.exe "-reports:cobertura.xml" "-targetdir:.\code-coverage-report-html"
9298 artifacts :
@@ -150,7 +156,7 @@ ui-test:
150156 script :
151157 - powershell -File ci\uninstall-app.ps1
152158 - powershell -File ci\install-the-app.ps1
153- - VSTest.Console.exe src\bin\ProtonVPN.UI.Test .dll /TestCaseFilter:"Category=UI"
159+ - VSTest.Console.exe src\bin\ProtonVPN.UI.Tests .dll /TestCaseFilter:"Category=UI"
154160 - powershell -File ci\uninstall-app.ps1
155161 except :
156162 - /^debug.*$/
@@ -169,7 +175,27 @@ connection-tests:
169175 script :
170176 - powershell -File ci\uninstall-app.ps1
171177 - powershell -File ci\install-the-app.ps1
172- - VSTest.Console.exe src\bin\ProtonVPN.UI.Test.dll /TestCaseFilter:"Category=Connection"
178+ - VSTest.Console.exe src\bin\ProtonVPN.UI.Tests.dll /TestCaseFilter:"Category=Connection"
179+ - powershell -File ci\uninstall-app.ps1
180+ except :
181+ - /^debug.*$/
182+ - release/9.9.9
183+ - master
184+ artifacts :
185+ when : on_failure
186+ paths :
187+ - $SCREENSHOT_PATH
188+ expire_in : 2 weeks
189+
190+ win-11-tests :
191+ stage : ui-test
192+ when : manual
193+ tags :
194+ - win11
195+ script :
196+ - powershell -File ci\uninstall-app.ps1
197+ - powershell -File ci\install-the-app.ps1
198+ - VSTest.Console.exe src\bin\ProtonVPN.UI.Tests.dll /TestCaseFilter:"Category=Smoke"
173199 - powershell -File ci\uninstall-app.ps1
174200 except :
175201 - /^debug.*$/
0 commit comments