1 // Jest Snapshot v1, https://goo.gl/fbAQLP
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"
13 exports[`can choose build tools and copy provided settings: Dart linux: 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: 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"
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""`;
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"
47 exports[`can choose build tools and copy provided settings: Dart 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 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"
64 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux arm64: execute scanner 1`] = `
66 -Dsonar.projectKey=my-project \\
68 -Dsonar.host.url=http://localhost:9000"
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"
81 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 1`] = `
83 -Dsonar.projectKey=my-project \\
85 -Dsonar.host.url=http://localhost:9000"
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"
98 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 1`] = `
100 -Dsonar.projectKey=my-project \\
102 -Dsonar.host.url=http://localhost:9000"
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"
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""`;
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"
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
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"
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"`;
151 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: execute scanner 1`] = `
153 -Dsonar.projectKey=my-project \\
155 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
156 -Dsonar.host.url=http://localhost:9000"
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
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"
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"`;
178 exports[`can choose build tools and copy provided settings: c++ (manual) linux: execute scanner 1`] = `
180 -Dsonar.projectKey=my-project \\
182 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
183 -Dsonar.host.url=http://localhost:9000"
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
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"
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"`;
205 exports[`can choose build tools and copy provided settings: c++ (manual) macos: execute scanner 1`] = `
207 -Dsonar.projectKey=my-project \\
209 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
210 -Dsonar.host.url=http://localhost:9000"
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"
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"
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"`;
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""`;
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""`;
245 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
247 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
249 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
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""`;
253 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
255 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
257 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
259 -Dsonar.projectKey=my-project \\
260 -Dsonar.projectName='MyProject' \\
261 -Dsonar.host.url=http://localhost:9000 \\
262 -Dsonar.token=generatedtoken2"
265 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
267 id "org.sonarqube" version "5.1.0.4882"
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"
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
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"
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"`;
298 exports[`can choose build tools and copy provided settings: objective-c linux arm64: execute scanner 1`] = `
300 -Dsonar.projectKey=my-project \\
302 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
303 -Dsonar.host.url=http://localhost:9000"
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
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"
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"`;
325 exports[`can choose build tools and copy provided settings: objective-c linux: execute scanner 1`] = `
327 -Dsonar.projectKey=my-project \\
329 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
330 -Dsonar.host.url=http://localhost:9000"
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
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"
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"`;
352 exports[`can choose build tools and copy provided settings: objective-c macos: execute scanner 1`] = `
354 -Dsonar.projectKey=my-project \\
356 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
357 -Dsonar.host.url=http://localhost:9000"
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"
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"
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"`;
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""`;