-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
1,345 additions
and
781 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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ include: | |
|
||
variables: | ||
PUBLIC_REPO_URL: [email protected]:ProtonVPN/win-app.git | ||
SCREENSHOT_PATH: src/bin/TestFailureData/ | ||
TEST_ARTIFACT_PATH: src/bin/TestArtifactData/ | ||
TEST_REPORT_PATH: results/ | ||
PROJECT_ID: "13" | ||
MILESTONE: "Windows" | ||
|
@@ -77,7 +77,7 @@ tests: | |
- cmd.exe /c BuildDependencies.bat bin gosrponly | ||
- dotnet restore ProtonVpn.sln | ||
- dotnet build ProtonVpn.sln | ||
- coverlet src\bin --target "dotnet" --targetargs "test ProtonVpn.sln -l ""console;verbosity=normal"" --filter ""TestCategory!=UI&TestCategory!=Connection"" --no-restore --no-build" --format cobertura --output .\coverage-reports --exclude "[*.Tests*]*" --exclude "[ProtonVPN.MarkupValidator]*" --exclude "[TestTools*]*" --exclude "[*.Installers]*" | ||
- coverlet src\bin --target "dotnet" --targetargs "test ProtonVpn.sln -l ""console;verbosity=normal"" --filter ""TestCategory!=UI&TestCategory!=Connection&TestCategory!=Performance"" --no-restore --no-build" --format cobertura --output .\coverage-reports --exclude "[*.Tests*]*" --exclude "[ProtonVPN.MarkupValidator]*" --exclude "[TestTools*]*" --exclude "[*.Installers]*" | ||
- powershell -Command "(gc coverage-reports.cobertura.xml) -replace '\\', '/' | Out-File -encoding UTF8 cobertura.xml" | ||
- ReportGenerator.exe "-reports:cobertura.xml" "-targetdir:.\code-coverage-report-html" | ||
artifacts: | ||
|
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,23 @@ | ||
$response = Invoke-RestMethod -Uri "https://protonvpn.com/download/windows-releases.json" | ||
$documentsFolderPath = [Environment]::GetFolderPath("MyDocuments") | ||
$installersFolderPath = Join-Path $documentsFolderPath "Installers" | ||
|
||
if (-not (Test-Path -Path $installersFolderPath -PathType Container)) { | ||
New-Item -Path $installersFolderPath -ItemType Directory | ||
} | ||
|
||
$mostRecentStableVersion = $response.Categories | Where-Object { $_.Name -eq "Stable" } | | ||
Select-Object -ExpandProperty Releases | | ||
Sort-Object { [version]::Parse($_.Version) } -Descending | | ||
Select-Object -First 1 | ||
|
||
$mostRecentStableVersionUrl = $mostRecentStableVersion.File.Url | ||
$executableName = [System.IO.Path]::GetFileName($mostRecentStableVersionUrl) | ||
|
||
$executablePath = Join-Path $installersFolderPath $executableName | ||
|
||
if (-not (Test-Path -Path $executablePath)) { | ||
Invoke-WebRequest -Uri $mostRecentStableVersionUrl -OutFile $executablePath | ||
} | ||
|
||
Start-Process -FilePath $executablePath -ArgumentList "/verysilent" -PassThru -Wait |
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,6 +1,8 @@ | ||
$protonFolder = "C:\Program Files\Proton\VPN" | ||
$protonUninstallExe = $protonFolder + "\unins000.exe" | ||
if (Test-Path -Path $protonFolder) { | ||
if(Test-Path -Path $protonUninstallExe) { | ||
Start-Process -FilePath $protonUninstallExe -ArgumentList "/verysilent" -Wait -ErrorAction Ignore | ||
} | ||
if (Test-Path -Path $protonFolder) { | ||
Remove-Item $protonFolder -Recurse -ErrorAction Ignore | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.