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