1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 1`] = `
5 -Dsonar.projectKey=my-project \\
7 -Dsonar.host.url=http://localhost:9000"
10 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 2`] = `
11 "export SONAR_SCANNER_VERSION=5.0.1.3006
12 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
13 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
14 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
15 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
16 export SONAR_SCANNER_OPTS="-server"
20 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 1`] = `
22 -Dsonar.projectKey=my-project \\
24 -Dsonar.host.url=http://localhost:9000"
27 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 2`] = `
28 "export SONAR_SCANNER_VERSION=5.0.1.3006
29 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
30 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
31 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
32 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
33 export SONAR_SCANNER_OPTS="-server"
37 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""`;
39 exports[`can choose build tools and copy provided settings: c++ (automatic) and other windows: execute scanner 2`] = `
40 "$env:SONAR_SCANNER_VERSION = "5.0.1.3006"
41 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
42 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
43 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
44 New-Item -path $env:SONAR_SCANNER_HOME -type directory
45 (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")
46 Add-Type -AssemblyName System.IO.Compression.FileSystem
47 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
48 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
49 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
50 $env:SONAR_SCANNER_OPTS="-server"
54 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: download build wrapper 1`] = `
55 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip
56 unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
57 export PATH=$HOME/.sonar/build-wrapper-linux-aarch64:$PATH
61 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: download scanner 1`] = `
62 "export SONAR_SCANNER_VERSION=5.0.1.3006
63 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
64 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
65 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
66 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
67 export SONAR_SCANNER_OPTS="-server"
71 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"`;
73 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: execute scanner 1`] = `
75 -Dsonar.projectKey=my-project \\
77 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
78 -Dsonar.host.url=http://localhost:9000"
81 exports[`can choose build tools and copy provided settings: c++ (manual) linux: download build wrapper 1`] = `
82 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
83 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
84 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
88 exports[`can choose build tools and copy provided settings: c++ (manual) linux: download scanner 1`] = `
89 "export SONAR_SCANNER_VERSION=5.0.1.3006
90 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
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.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: execute build wrapper 1`] = `"build-wrapper-linux-x86-64 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
100 exports[`can choose build tools and copy provided settings: c++ (manual) linux: 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) macos: download build wrapper 1`] = `
109 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
110 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
111 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
115 exports[`can choose build tools and copy provided settings: c++ (manual) macos: download scanner 1`] = `
116 "export SONAR_SCANNER_VERSION=5.0.1.3006
117 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
118 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
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) macos: execute build wrapper 1`] = `"build-wrapper-macosx-x86 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
127 exports[`can choose build tools and copy provided settings: c++ (manual) macos: 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) windows: download build wrapper 1`] = `
136 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
137 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
138 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
139 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
140 Add-Type -AssemblyName System.IO.Compression.FileSystem
141 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
142 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
146 exports[`can choose build tools and copy provided settings: c++ (manual) windows: download scanner 1`] = `
147 "$env:SONAR_SCANNER_VERSION = "5.0.1.3006"
148 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
149 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
150 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
151 New-Item -path $env:SONAR_SCANNER_HOME -type directory
152 (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")
153 Add-Type -AssemblyName System.IO.Compression.FileSystem
154 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
155 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
156 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
157 $env:SONAR_SCANNER_OPTS="-server"
161 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"`;
163 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""`;
165 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""`;
167 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
169 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
171 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
173 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""`;
175 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
177 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
179 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
181 -Dsonar.projectKey=my-project \\
182 -Dsonar.projectName='MyProject' \\
183 -Dsonar.host.url=http://localhost:9000 \\
184 -Dsonar.token=generatedtoken2"
187 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
189 id "org.sonarqube" version "5.0.0.4638"
193 exports[`can choose build tools and copy provided settings: maven: execute scanner 1`] = `
194 "mvn clean verify sonar:sonar \\
195 -Dsonar.projectKey=my-project \\
196 -Dsonar.projectName='MyProject' \\
197 -Dsonar.host.url=http://localhost:9000 \\
198 -Dsonar.token=generatedtoken2"
201 exports[`can choose build tools and copy provided settings: objective-c linux arm64: download build wrapper 1`] = `
202 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip
203 unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
204 export PATH=$HOME/.sonar/build-wrapper-linux-aarch64:$PATH
208 exports[`can choose build tools and copy provided settings: objective-c linux arm64: download scanner 1`] = `
209 "export SONAR_SCANNER_VERSION=5.0.1.3006
210 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
211 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
212 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
213 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
214 export SONAR_SCANNER_OPTS="-server"
218 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"`;
220 exports[`can choose build tools and copy provided settings: objective-c linux arm64: execute scanner 1`] = `
222 -Dsonar.projectKey=my-project \\
224 -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
225 -Dsonar.host.url=http://localhost:9000"
228 exports[`can choose build tools and copy provided settings: objective-c linux: download build wrapper 1`] = `
229 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
230 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
231 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
235 exports[`can choose build tools and copy provided settings: objective-c linux: download scanner 1`] = `
236 "export SONAR_SCANNER_VERSION=5.0.1.3006
237 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
238 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
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: execute build wrapper 1`] = `"build-wrapper-linux-x86-64 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
247 exports[`can choose build tools and copy provided settings: objective-c linux: 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 macos: download build wrapper 1`] = `
256 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
257 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
258 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
262 exports[`can choose build tools and copy provided settings: objective-c macos: download scanner 1`] = `
263 "export SONAR_SCANNER_VERSION=5.0.1.3006
264 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
265 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
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 macos: execute build wrapper 1`] = `"build-wrapper-macosx-x86 --out-dir bw-output onboarding.analysis.build_wrapper.execute_build_command"`;
274 exports[`can choose build tools and copy provided settings: objective-c macos: 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 windows: download build wrapper 1`] = `
283 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
284 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
285 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
286 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
287 Add-Type -AssemblyName System.IO.Compression.FileSystem
288 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
289 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
293 exports[`can choose build tools and copy provided settings: objective-c windows: download scanner 1`] = `
294 "$env:SONAR_SCANNER_VERSION = "5.0.1.3006"
295 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
296 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
297 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
298 New-Item -path $env:SONAR_SCANNER_HOME -type directory
299 (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")
300 Add-Type -AssemblyName System.IO.Compression.FileSystem
301 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
302 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
303 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
304 $env:SONAR_SCANNER_OPTS="-server"
308 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"`;
310 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""`;