]> source.dussan.org Git - sonarqube.git/blob
6f4879b342b09f33ff3c4947b15c0cb1ed776dbc
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`can choose build tools and copy provided settings: Dart linux: download scanner 1`] = `
4 "export SONAR_SCANNER_VERSION=6.2.0.4584
5 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-aarch64
6 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-aarch64.zip
7 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
8 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
9 "
10 `;
11
12 exports[`can choose build tools and copy provided settings: Dart linux: execute scanner 1`] = `
13 "sonar-scanner \\
14   -Dsonar.projectKey=my-project \\
15   -Dsonar.sources=. \\
16   -Dsonar.host.url=http://localhost:9000"
17 `;
18
19 exports[`can choose build tools and copy provided settings: Dart macos: download scanner 1`] = `
20 "export SONAR_SCANNER_VERSION=6.2.0.4584
21 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx-aarch64
22 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx-aarch64.zip
23 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
24 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
25 "
26 `;
27
28 exports[`can choose build tools and copy provided settings: Dart macos: execute scanner 1`] = `
29 "sonar-scanner \\
30   -Dsonar.projectKey=my-project \\
31   -Dsonar.sources=. \\
32   -Dsonar.host.url=http://localhost:9000"
33 `;
34
35 exports[`can choose build tools and copy provided settings: Dart windows: download scanner 1`] = `
36 "$env:SONAR_SCANNER_VERSION = "6.2.0.4584"
37 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
38 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows-x64"
39 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
40 New-Item -path $env:SONAR_SCANNER_HOME -type directory
41 (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows-x64.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
42 Add-Type -AssemblyName System.IO.Compression.FileSystem
43 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
44 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
45 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
46 "
47 `;
48
49 exports[`can choose build tools and copy provided settings: Dart windows: execute scanner 1`] = `"sonar-scanner.bat -D"sonar.projectKey=my-project" -D"sonar.sources=." -D"sonar.host.url=http://localhost:9000""`;
50
51 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux arm64: download scanner 1`] = `
52 "export SONAR_SCANNER_VERSION=6.2.0.4584
53 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-aarch64
54 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-aarch64.zip
55 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
56 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
57 "
58 `;
59
60 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux arm64: execute scanner 1`] = `
61 "sonar-scanner \\
62   -Dsonar.projectKey=my-project \\
63   -Dsonar.sources=. \\
64   -Dsonar.host.url=http://localhost:9000"
65 `;
66
67 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: download scanner 1`] = `
68 "export SONAR_SCANNER_VERSION=6.2.0.4584
69 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
70 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip
71 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
72 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
73 "
74 `;
75
76 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 1`] = `
77 "sonar-scanner \\
78   -Dsonar.projectKey=my-project \\
79   -Dsonar.sources=. \\
80   -Dsonar.host.url=http://localhost:9000"
81 `;
82
83 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 2`] = `
84 "export SONAR_SCANNER_VERSION=6.2.0.4584
85 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-aarch64
86 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-aarch64.zip
87 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
88 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
89 "
90 `;
91
92 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 1`] = `
93 "sonar-scanner \\
94   -Dsonar.projectKey=my-project \\
95   -Dsonar.sources=. \\
96   -Dsonar.host.url=http://localhost:9000"
97 `;
98
99 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 2`] = `
100 "export SONAR_SCANNER_VERSION=6.2.0.4584
101 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx-aarch64
102 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx-aarch64.zip
103 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
104 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
105 "
106 `;
107
108 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""`;
109
110 exports[`can choose build tools and copy provided settings: c++ (automatic) and other windows: execute scanner 2`] = `
111 "$env:SONAR_SCANNER_VERSION = "6.2.0.4584"
112 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
113 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows-x64"
114 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
115 New-Item -path $env:SONAR_SCANNER_HOME -type directory
116 (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows-x64.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
117 Add-Type -AssemblyName System.IO.Compression.FileSystem
118 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
119 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
120 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
121 "
122 `;
123
124 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: download build wrapper 1`] = `
125 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip
126 unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
127 export PATH=$HOME/.sonar/build-wrapper-linux-aarch64:$PATH
128 "
129 `;
130
131 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: download scanner 1`] = `
132 "export SONAR_SCANNER_VERSION=6.2.0.4584
133 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-aarch64
134 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-aarch64.zip
135 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
136 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
137 "
138 `;
139
140 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"`;
141
142 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: execute scanner 1`] = `
143 "sonar-scanner \\
144   -Dsonar.projectKey=my-project \\
145   -Dsonar.sources=. \\
146   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
147   -Dsonar.host.url=http://localhost:9000"
148 `;
149
150 exports[`can choose build tools and copy provided settings: c++ (manual) linux: download build wrapper 1`] = `
151 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
152 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
153 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
154 "
155 `;
156
157 exports[`can choose build tools and copy provided settings: c++ (manual) linux: download scanner 1`] = `
158 "export SONAR_SCANNER_VERSION=6.2.0.4584
159 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
160 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip
161 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
162 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
163 "
164 `;
165
166 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"`;
167
168 exports[`can choose build tools and copy provided settings: c++ (manual) linux: execute scanner 1`] = `
169 "sonar-scanner \\
170   -Dsonar.projectKey=my-project \\
171   -Dsonar.sources=. \\
172   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
173   -Dsonar.host.url=http://localhost:9000"
174 `;
175
176 exports[`can choose build tools and copy provided settings: c++ (manual) macos: download build wrapper 1`] = `
177 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
178 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
179 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
180 "
181 `;
182
183 exports[`can choose build tools and copy provided settings: c++ (manual) macos: download scanner 1`] = `
184 "export SONAR_SCANNER_VERSION=6.2.0.4584
185 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx-aarch64
186 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx-aarch64.zip
187 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
188 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
189 "
190 `;
191
192 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"`;
193
194 exports[`can choose build tools and copy provided settings: c++ (manual) macos: execute scanner 1`] = `
195 "sonar-scanner \\
196   -Dsonar.projectKey=my-project \\
197   -Dsonar.sources=. \\
198   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
199   -Dsonar.host.url=http://localhost:9000"
200 `;
201
202 exports[`can choose build tools and copy provided settings: c++ (manual) windows: download build wrapper 1`] = `
203 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
204 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
205 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
206 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
207 Add-Type -AssemblyName System.IO.Compression.FileSystem
208 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
209 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
210 "
211 `;
212
213 exports[`can choose build tools and copy provided settings: c++ (manual) windows: download scanner 1`] = `
214 "$env:SONAR_SCANNER_VERSION = "6.2.0.4584"
215 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
216 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows-x64"
217 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
218 New-Item -path $env:SONAR_SCANNER_HOME -type directory
219 (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows-x64.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
220 Add-Type -AssemblyName System.IO.Compression.FileSystem
221 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
222 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
223 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
224 "
225 `;
226
227 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"`;
228
229 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""`;
230
231 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""`;
232
233 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
234
235 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
236
237 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
238
239 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""`;
240
241 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
242
243 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
244
245 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
246 "./gradlew sonar \\
247   -Dsonar.projectKey=my-project \\
248   -Dsonar.projectName='MyProject' \\
249   -Dsonar.host.url=http://localhost:9000 \\
250   -Dsonar.token=generatedtoken2"
251 `;
252
253 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
254 "plugins {
255   id "org.sonarqube" version "5.1.0.4882"
256 }"
257 `;
258
259 exports[`can choose build tools and copy provided settings: maven: execute scanner 1`] = `
260 "mvn clean verify sonar:sonar \\
261   -Dsonar.projectKey=my-project \\
262   -Dsonar.projectName='MyProject' \\
263   -Dsonar.host.url=http://localhost:9000 \\
264   -Dsonar.token=generatedtoken2"
265 `;
266
267 exports[`can choose build tools and copy provided settings: objective-c linux arm64: download build wrapper 1`] = `
268 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip
269 unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
270 export PATH=$HOME/.sonar/build-wrapper-linux-aarch64:$PATH
271 "
272 `;
273
274 exports[`can choose build tools and copy provided settings: objective-c linux arm64: download scanner 1`] = `
275 "export SONAR_SCANNER_VERSION=6.2.0.4584
276 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-aarch64
277 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-aarch64.zip
278 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
279 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
280 "
281 `;
282
283 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"`;
284
285 exports[`can choose build tools and copy provided settings: objective-c linux arm64: execute scanner 1`] = `
286 "sonar-scanner \\
287   -Dsonar.projectKey=my-project \\
288   -Dsonar.sources=. \\
289   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
290   -Dsonar.host.url=http://localhost:9000"
291 `;
292
293 exports[`can choose build tools and copy provided settings: objective-c linux: download build wrapper 1`] = `
294 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
295 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
296 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
297 "
298 `;
299
300 exports[`can choose build tools and copy provided settings: objective-c linux: download scanner 1`] = `
301 "export SONAR_SCANNER_VERSION=6.2.0.4584
302 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
303 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip
304 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
305 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
306 "
307 `;
308
309 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"`;
310
311 exports[`can choose build tools and copy provided settings: objective-c linux: execute scanner 1`] = `
312 "sonar-scanner \\
313   -Dsonar.projectKey=my-project \\
314   -Dsonar.sources=. \\
315   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
316   -Dsonar.host.url=http://localhost:9000"
317 `;
318
319 exports[`can choose build tools and copy provided settings: objective-c macos: download build wrapper 1`] = `
320 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
321 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
322 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
323 "
324 `;
325
326 exports[`can choose build tools and copy provided settings: objective-c macos: download scanner 1`] = `
327 "export SONAR_SCANNER_VERSION=6.2.0.4584
328 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx-aarch64
329 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx-aarch64.zip
330 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
331 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
332 "
333 `;
334
335 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"`;
336
337 exports[`can choose build tools and copy provided settings: objective-c macos: execute scanner 1`] = `
338 "sonar-scanner \\
339   -Dsonar.projectKey=my-project \\
340   -Dsonar.sources=. \\
341   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
342   -Dsonar.host.url=http://localhost:9000"
343 `;
344
345 exports[`can choose build tools and copy provided settings: objective-c windows: download build wrapper 1`] = `
346 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
347 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
348 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
349 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
350 Add-Type -AssemblyName System.IO.Compression.FileSystem
351 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
352 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
353 "
354 `;
355
356 exports[`can choose build tools and copy provided settings: objective-c windows: download scanner 1`] = `
357 "$env:SONAR_SCANNER_VERSION = "6.2.0.4584"
358 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
359 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows-x64"
360 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
361 New-Item -path $env:SONAR_SCANNER_HOME -type directory
362 (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows-x64.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
363 Add-Type -AssemblyName System.IO.Compression.FileSystem
364 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
365 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
366 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
367 "
368 `;
369
370 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"`;
371
372 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""`;