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.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
12 exports[`can choose build tools and copy provided settings: Dart linux: execute scanner 1`] = `
14 -Dsonar.projectKey=my-project \\
16 -Dsonar.host.url=http://localhost:9000"
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
28 exports[`can choose build tools and copy provided settings: Dart macos: execute scanner 1`] = `
30 -Dsonar.projectKey=my-project \\
32 -Dsonar.host.url=http://localhost:9000"
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"
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""`;
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
60 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux arm64: execute scanner 1`] = `
62 -Dsonar.projectKey=my-project \\
64 -Dsonar.host.url=http://localhost:9000"
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
76 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 1`] = `
78 -Dsonar.projectKey=my-project \\
80 -Dsonar.host.url=http://localhost:9000"
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
92 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 1`] = `
94 -Dsonar.projectKey=my-project \\
96 -Dsonar.host.url=http://localhost:9000"
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
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""`;
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"
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
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
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"`;
142 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: execute scanner 1`] = `
144 -Dsonar.projectKey=my-project \\
146 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
147 -Dsonar.host.url=http://localhost:9000"
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
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
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"`;
168 exports[`can choose build tools and copy provided settings: c++ (manual) linux: execute scanner 1`] = `
170 -Dsonar.projectKey=my-project \\
172 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
173 -Dsonar.host.url=http://localhost:9000"
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
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
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"`;
194 exports[`can choose build tools and copy provided settings: c++ (manual) macos: execute scanner 1`] = `
196 -Dsonar.projectKey=my-project \\
198 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
199 -Dsonar.host.url=http://localhost:9000"
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"
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"
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"`;
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""`;
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""`;
233 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
235 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
237 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
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""`;
241 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
243 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
245 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
247 -Dsonar.projectKey=my-project \\
248 -Dsonar.projectName='MyProject' \\
249 -Dsonar.host.url=http://localhost:9000 \\
250 -Dsonar.token=generatedtoken2"
253 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
255 id "org.sonarqube" version "5.1.0.4882"
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"
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
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
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"`;
285 exports[`can choose build tools and copy provided settings: objective-c linux arm64: execute scanner 1`] = `
287 -Dsonar.projectKey=my-project \\
289 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
290 -Dsonar.host.url=http://localhost:9000"
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
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
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"`;
311 exports[`can choose build tools and copy provided settings: objective-c linux: execute scanner 1`] = `
313 -Dsonar.projectKey=my-project \\
315 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
316 -Dsonar.host.url=http://localhost:9000"
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
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
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"`;
337 exports[`can choose build tools and copy provided settings: objective-c macos: execute scanner 1`] = `
339 -Dsonar.projectKey=my-project \\
341 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
342 -Dsonar.host.url=http://localhost:9000"
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"
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"
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"`;
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""`;