123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`can choose build tools and copy provided settings: cfamily linux: execute build wrapper 1`] = `
- "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
- unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
- export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
- "
- `;
-
- exports[`can choose build tools and copy provided settings: cfamily linux: execute scanner 1`] = `
- "export SONAR_SCANNER_VERSION=5.0.1.3006
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server"
- "
- `;
-
- exports[`can choose build tools and copy provided settings: cfamily macos: execute build wrapper 1`] = `
- "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
- unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
- export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
- "
- `;
-
- exports[`can choose build tools and copy provided settings: cfamily macos: execute scanner 1`] = `
- "export SONAR_SCANNER_VERSION=5.0.1.3006
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server"
- "
- `;
-
- exports[`can choose build tools and copy provided settings: cfamily windows: execute build wrapper 1`] = `
- "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
- rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
- New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
- (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
- Add-Type -AssemblyName System.IO.Compression.FileSystem
- [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
- $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
- "
- `;
-
- exports[`can choose build tools and copy provided settings: cfamily windows: execute scanner 1`] = `
- "$env:SONAR_SCANNER_VERSION = "5.0.1.3006"
- $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
- $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
- rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
- New-Item -path $env:SONAR_SCANNER_HOME -type directory
- (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
- Add-Type -AssemblyName System.IO.Compression.FileSystem
- [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
- rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
- $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
- $env:SONAR_SCANNER_OPTS="-server"
- "
- `;
-
- exports[`can choose build tools and copy provided settings: dotnet core: execute command 1 1`] = `"dotnet sonarscanner begin /k:"my-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="generatedtoken2""`;
-
- exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
-
- exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
-
- exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
-
- exports[`can choose build tools and copy provided settings: dotnet framework: execute command 1 1`] = `"SonarScanner.MSBuild.exe begin /k:"my-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="generatedtoken2""`;
-
- exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
-
- exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
-
- exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
- "./gradlew sonar \\
- -Dsonar.projectKey=my-project \\
- -Dsonar.projectName='MyProject' \\
- -Dsonar.host.url=http://localhost:9000 \\
- -Dsonar.token=generatedtoken2"
- `;
-
- exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
- "plugins {
- id "org.sonarqube" version "5.0.0.4638"
- }"
- `;
-
- exports[`can choose build tools and copy provided settings: maven: execute scanner 1`] = `
- "mvn clean verify sonar:sonar \\
- -Dsonar.projectKey=my-project \\
- -Dsonar.projectName='MyProject' \\
- -Dsonar.host.url=http://localhost:9000 \\
- -Dsonar.token=generatedtoken2"
- `;
-
- exports[`can choose build tools and copy provided settings: other linux: execute scanner 1`] = `
- "export SONAR_SCANNER_VERSION=5.0.1.3006
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server"
- "
- `;
-
- exports[`can choose build tools and copy provided settings: other macos: execute scanner 1`] = `
- "export SONAR_SCANNER_VERSION=5.0.1.3006
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server"
- "
- `;
-
- exports[`can choose build tools and copy provided settings: other windows: execute scanner 1`] = `
- "$env:SONAR_SCANNER_VERSION = "5.0.1.3006"
- $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
- $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
- rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
- New-Item -path $env:SONAR_SCANNER_HOME -type directory
- (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
- Add-Type -AssemblyName System.IO.Compression.FileSystem
- [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
- rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
- $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
- $env:SONAR_SCANNER_OPTS="-server"
- "
- `;
|