]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Remove appveyor files
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 30 Apr 2024 13:23:36 +0000 (15:23 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Fri, 3 May 2024 11:07:43 +0000 (13:07 +0200)
appveyor.ps1 [deleted file]
appveyor.yml [deleted file]

diff --git a/appveyor.ps1 b/appveyor.ps1
deleted file mode 100644 (file)
index a8a81f1..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-
-function FetchAndUnzip
-{
-        param ([string]$Url, [string]$Out)
-
-        $tmp = [System.IO.Path]::GetTempFileName()
-        [System.Reflection.Assembly]::LoadWithPartialName('System.Net.Http') | Out-Null
-        $client = (New-Object System.Net.Http.HttpClient)
-        try
-        {
-                if (-not([string]::IsNullOrEmpty($env:GITHUB_TOKEN)))
-                {
-                        $credentials = [string]::Format([System.Globalization.CultureInfo]::InvariantCulture, "{0}:", $env:GITHUB_TOKEN);
-                        $credentials = [Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($credentials));
-                        $client.DefaultRequestHeaders.Authorization = (New-Object System.Net.Http.Headers.AuthenticationHeaderValue("Basic", $credentials));
-                }
-                $contents = $client.GetByteArrayAsync($url).Result;
-                [System.IO.File]::WriteAllBytes($tmp, $contents);
-        }
-        finally
-        {
-                $client.Dispose()
-        }
-
-        if (-not(Test-Path $Out))
-        {
-                mkdir $Out | Out-Null
-        }
-        [System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') | Out-Null
-        [System.IO.Compression.ZipFile]::ExtractToDirectory($tmp, $Out)
-}
-
-function InstallAppveyorTools
-{
-        $travisUtilsVersion = "57"
-        $localPath = "$env:USERPROFILE\.local"
-        $travisUtilsPath = "$localPath\travis-utils-$travisUtilsVersion"
-        if (Test-Path $travisUtilsPath)
-        {
-                echo "Reusing the Travis Utils version $travisUtilsVersion already downloaded under $travisUtilsPath"
-        }
-        else
-        {
-                $url = "https://github.com/SonarSource/travis-utils/archive/v$travisUtilsVersion.zip"
-                echo "Downloading Travis Utils version $travisUtilsVersion from $url into $localPath"
-                FetchAndUnzip $url $localPath
-        }
-
-        $mavenLocalSettings = "$env:USERPROFILE\.m2\settings.xml"
-        echo "Installating settings.xml into $mavenLocalSettings"
-        Copy-Item "$travisUtilsPath\m2\settings-public.xml" $mavenLocalSettings -Force -Recurse
-
-        $env:ORCHESTRATOR_CONFIG_URL = ""
-        $env:TRAVIS = "ORCH-332"
-}
-
-
-function CheckLastExitCode
-{
-    param ([int[]]$SuccessCodes = @(0))
-
-    if ($SuccessCodes -notcontains $LastExitCode)
-       {
-        $msg = @"
-EXE RETURNED EXIT CODE $LastExitCode
-CALLSTACK:$(Get-PSCallStack | Out-String)
-"@
-        throw $msg
-    }
-}
-
-InstallAppveyorTools
-mvn verify "--batch-mode" "-B" "-e" "-V"
-CheckLastExitCode
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644 (file)
index 4e89596..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-version: 1.0.{build}
-
-branches:
-  only:
-  - master
-
-cache:
-  - C:\Users\appveyor\.m2 -> **\pom.xml
-
-install:
-  - set MAVEN_VERSION=3.3.9.1
-  - choco install maven -version %MAVEN_VERSION%
-  - set JAVA_HOME=C:\Program Files\Java\jdk1.8.0
-  - set PATH=%JAVA_HOME%\bin;%PATH%;C:\bin\apache-maven-%MAVEN_VERSION%\bin
-
-build_script:
-  - ps: ./appveyor.ps1