1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`can choose build tools and copy provided settings: cfamily linux: execute build wrapper 1`] = `
4 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
5 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
6 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
10 exports[`can choose build tools and copy provided settings: cfamily linux: execute scanner 1`] = `
11 "export SONAR_SCANNER_VERSION=4.7.0.2747
12 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
13 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
14 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
15 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
16 export SONAR_SCANNER_OPTS="-server"
20 exports[`can choose build tools and copy provided settings: cfamily macos: execute build wrapper 1`] = `
21 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
22 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
23 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
27 exports[`can choose build tools and copy provided settings: cfamily macos: execute scanner 1`] = `
28 "export SONAR_SCANNER_VERSION=4.7.0.2747
29 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
30 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
31 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
32 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
33 export SONAR_SCANNER_OPTS="-server"
37 exports[`can choose build tools and copy provided settings: cfamily windows: execute build wrapper 1`] = `
38 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
39 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
40 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
41 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
42 Add-Type -AssemblyName System.IO.Compression.FileSystem
43 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
44 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
48 exports[`can choose build tools and copy provided settings: cfamily windows: execute scanner 1`] = `
49 "$env:SONAR_SCANNER_VERSION = "4.7.0.2747"
50 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
51 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
52 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
53 New-Item -path $env:SONAR_SCANNER_HOME -type directory
54 (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")
55 Add-Type -AssemblyName System.IO.Compression.FileSystem
56 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
57 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
58 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
59 $env:SONAR_SCANNER_OPTS="-server"
63 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""`;
65 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
67 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
69 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
71 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""`;
73 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
75 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
77 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
79 -Dsonar.projectKey=my-project \\
80 -Dsonar.projectName='MyProject' \\
81 -Dsonar.host.url=http://localhost:9000 \\
82 -Dsonar.token=generatedtoken2"
85 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
87 id "org.sonarqube" version "4.2.1.3168"
91 exports[`can choose build tools and copy provided settings: maven: execute scanner 1`] = `
92 "mvn clean verify sonar:sonar \\
93 -Dsonar.projectKey=my-project \\
94 -Dsonar.projectName='MyProject' \\
95 -Dsonar.host.url=http://localhost:9000 \\
96 -Dsonar.token=generatedtoken2"
99 exports[`can choose build tools and copy provided settings: other linux: execute scanner 1`] = `
100 "export SONAR_SCANNER_VERSION=4.7.0.2747
101 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
102 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
103 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
104 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
105 export SONAR_SCANNER_OPTS="-server"
109 exports[`can choose build tools and copy provided settings: other macos: execute scanner 1`] = `
110 "export SONAR_SCANNER_VERSION=4.7.0.2747
111 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
112 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
113 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
114 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
115 export SONAR_SCANNER_OPTS="-server"
119 exports[`can choose build tools and copy provided settings: other windows: execute scanner 1`] = `
120 "$env:SONAR_SCANNER_VERSION = "4.7.0.2747"
121 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
122 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
123 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
124 New-Item -path $env:SONAR_SCANNER_HOME -type directory
125 (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")
126 Add-Type -AssemblyName System.IO.Compression.FileSystem
127 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
128 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
129 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
130 $env:SONAR_SCANNER_OPTS="-server"