1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux arm64: download scanner 1`] = `
4 "export SONAR_SCANNER_VERSION=6.0.0.4432
5 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION
6 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION.zip
7 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
8 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
9 export SONAR_SCANNER_OPTS="-server"
13 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux arm64: execute scanner 1`] = `
15 -Dsonar.projectKey=my-project \\
17 -Dsonar.host.url=http://localhost:9000"
20 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: download scanner 1`] = `
21 "export SONAR_SCANNER_VERSION=6.0.0.4432
22 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
23 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
24 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
25 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
26 export SONAR_SCANNER_OPTS="-server"
30 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 1`] = `
32 -Dsonar.projectKey=my-project \\
34 -Dsonar.host.url=http://localhost:9000"
37 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 2`] = `
38 "export SONAR_SCANNER_VERSION=6.0.0.4432
39 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
40 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
41 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
42 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
43 export SONAR_SCANNER_OPTS="-server"
47 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 1`] = `
49 -Dsonar.projectKey=my-project \\
51 -Dsonar.host.url=http://localhost:9000"
54 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 2`] = `
55 "export SONAR_SCANNER_VERSION=6.0.0.4432
56 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
57 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
58 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
59 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
60 export SONAR_SCANNER_OPTS="-server"
64 exports[`can choose build tools and copy provided settings: c++ (automatic) and other windows: execute scanner 1`] = `"sonar-scanner.bat -D"sonar.projectKey=my-project" -D"sonar.sources=." -D"sonar.host.url=http://localhost:9000""`;
66 exports[`can choose build tools and copy provided settings: c++ (automatic) and other windows: execute scanner 2`] = `
67 "$env:SONAR_SCANNER_VERSION = "6.0.0.4432"
68 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
69 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
70 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
71 New-Item -path $env:SONAR_SCANNER_HOME -type directory
72 (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")
73 Add-Type -AssemblyName System.IO.Compression.FileSystem
74 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
75 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
76 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
77 $env:SONAR_SCANNER_OPTS="-server"
81 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: download build wrapper 1`] = `
82 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip
83 unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
84 export PATH=$HOME/.sonar/build-wrapper-linux-aarch64:$PATH
88 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: download scanner 1`] = `
89 "export SONAR_SCANNER_VERSION=6.0.0.4432
90 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION
91 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION.zip
92 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
93 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
94 export SONAR_SCANNER_OPTS="-server"
98 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: execute build wrapper 1`] = `"build-wrapper-linux-aarch64 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
100 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: execute scanner 1`] = `
102 -Dsonar.projectKey=my-project \\
104 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
105 -Dsonar.host.url=http://localhost:9000"
108 exports[`can choose build tools and copy provided settings: c++ (manual) linux: download build wrapper 1`] = `
109 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
110 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
111 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
115 exports[`can choose build tools and copy provided settings: c++ (manual) linux: download scanner 1`] = `
116 "export SONAR_SCANNER_VERSION=6.0.0.4432
117 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
118 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
119 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
120 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
121 export SONAR_SCANNER_OPTS="-server"
125 exports[`can choose build tools and copy provided settings: c++ (manual) linux: execute build wrapper 1`] = `"build-wrapper-linux-x86-64 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
127 exports[`can choose build tools and copy provided settings: c++ (manual) linux: execute scanner 1`] = `
129 -Dsonar.projectKey=my-project \\
131 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
132 -Dsonar.host.url=http://localhost:9000"
135 exports[`can choose build tools and copy provided settings: c++ (manual) macos: download build wrapper 1`] = `
136 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
137 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
138 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
142 exports[`can choose build tools and copy provided settings: c++ (manual) macos: download scanner 1`] = `
143 "export SONAR_SCANNER_VERSION=6.0.0.4432
144 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
145 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
146 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
147 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
148 export SONAR_SCANNER_OPTS="-server"
152 exports[`can choose build tools and copy provided settings: c++ (manual) macos: execute build wrapper 1`] = `"build-wrapper-macosx-x86 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
154 exports[`can choose build tools and copy provided settings: c++ (manual) macos: execute scanner 1`] = `
156 -Dsonar.projectKey=my-project \\
158 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
159 -Dsonar.host.url=http://localhost:9000"
162 exports[`can choose build tools and copy provided settings: c++ (manual) windows: download build wrapper 1`] = `
163 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
164 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
165 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
166 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
167 Add-Type -AssemblyName System.IO.Compression.FileSystem
168 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
169 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
173 exports[`can choose build tools and copy provided settings: c++ (manual) windows: download scanner 1`] = `
174 "$env:SONAR_SCANNER_VERSION = "6.0.0.4432"
175 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
176 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
177 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
178 New-Item -path $env:SONAR_SCANNER_HOME -type directory
179 (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")
180 Add-Type -AssemblyName System.IO.Compression.FileSystem
181 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
182 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
183 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
184 $env:SONAR_SCANNER_OPTS="-server"
188 exports[`can choose build tools and copy provided settings: c++ (manual) windows: execute build wrapper 1`] = `"build-wrapper-win-x86-64.exe --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
190 exports[`can choose build tools and copy provided settings: c++ (manual) windows: execute scanner 1`] = `"sonar-scanner.bat -D"sonar.projectKey=my-project" -D"sonar.sources=." -D"sonar.cfamily.compile-commands=bw-output/compile_commands.json" -D"sonar.host.url=http://localhost:9000""`;
192 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""`;
194 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
196 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
198 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
200 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""`;
202 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
204 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
206 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
208 -Dsonar.projectKey=my-project \\
209 -Dsonar.projectName='MyProject' \\
210 -Dsonar.host.url=http://localhost:9000 \\
211 -Dsonar.token=generatedtoken2"
214 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
216 id "org.sonarqube" version "5.0.0.4638"
220 exports[`can choose build tools and copy provided settings: maven: execute scanner 1`] = `
221 "mvn clean verify sonar:sonar \\
222 -Dsonar.projectKey=my-project \\
223 -Dsonar.projectName='MyProject' \\
224 -Dsonar.host.url=http://localhost:9000 \\
225 -Dsonar.token=generatedtoken2"
228 exports[`can choose build tools and copy provided settings: objective-c linux arm64: download build wrapper 1`] = `
229 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip
230 unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
231 export PATH=$HOME/.sonar/build-wrapper-linux-aarch64:$PATH
235 exports[`can choose build tools and copy provided settings: objective-c linux arm64: download scanner 1`] = `
236 "export SONAR_SCANNER_VERSION=6.0.0.4432
237 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION
238 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION.zip
239 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
240 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
241 export SONAR_SCANNER_OPTS="-server"
245 exports[`can choose build tools and copy provided settings: objective-c linux arm64: execute build wrapper 1`] = `"build-wrapper-linux-aarch64 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
247 exports[`can choose build tools and copy provided settings: objective-c linux arm64: execute scanner 1`] = `
249 -Dsonar.projectKey=my-project \\
251 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
252 -Dsonar.host.url=http://localhost:9000"
255 exports[`can choose build tools and copy provided settings: objective-c linux: download build wrapper 1`] = `
256 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
257 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
258 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
262 exports[`can choose build tools and copy provided settings: objective-c linux: download scanner 1`] = `
263 "export SONAR_SCANNER_VERSION=6.0.0.4432
264 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
265 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
266 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
267 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
268 export SONAR_SCANNER_OPTS="-server"
272 exports[`can choose build tools and copy provided settings: objective-c linux: execute build wrapper 1`] = `"build-wrapper-linux-x86-64 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
274 exports[`can choose build tools and copy provided settings: objective-c linux: execute scanner 1`] = `
276 -Dsonar.projectKey=my-project \\
278 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
279 -Dsonar.host.url=http://localhost:9000"
282 exports[`can choose build tools and copy provided settings: objective-c macos: download build wrapper 1`] = `
283 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
284 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
285 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
289 exports[`can choose build tools and copy provided settings: objective-c macos: download scanner 1`] = `
290 "export SONAR_SCANNER_VERSION=6.0.0.4432
291 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
292 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
293 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
294 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
295 export SONAR_SCANNER_OPTS="-server"
299 exports[`can choose build tools and copy provided settings: objective-c macos: execute build wrapper 1`] = `"build-wrapper-macosx-x86 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
301 exports[`can choose build tools and copy provided settings: objective-c macos: execute scanner 1`] = `
303 -Dsonar.projectKey=my-project \\
305 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
306 -Dsonar.host.url=http://localhost:9000"
309 exports[`can choose build tools and copy provided settings: objective-c windows: download build wrapper 1`] = `
310 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
311 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
312 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
313 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
314 Add-Type -AssemblyName System.IO.Compression.FileSystem
315 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
316 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
320 exports[`can choose build tools and copy provided settings: objective-c windows: download scanner 1`] = `
321 "$env:SONAR_SCANNER_VERSION = "6.0.0.4432"
322 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
323 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
324 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
325 New-Item -path $env:SONAR_SCANNER_HOME -type directory
326 (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")
327 Add-Type -AssemblyName System.IO.Compression.FileSystem
328 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
329 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
330 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
331 $env:SONAR_SCANNER_OPTS="-server"
335 exports[`can choose build tools and copy provided settings: objective-c windows: execute build wrapper 1`] = `"build-wrapper-win-x86-64.exe --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
337 exports[`can choose build tools and copy provided settings: objective-c windows: execute scanner 1`] = `"sonar-scanner.bat -D"sonar.projectKey=my-project" -D"sonar.sources=." -D"sonar.cfamily.compile-commands=bw-output/compile_commands.json" -D"sonar.host.url=http://localhost:9000""`;