]> source.dussan.org Git - sonarqube.git/blob
b38254c0548bbb56b643d4b9d92107a7f0385583
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`can choose build tools and copy provided settings: c++ (automatic) and other linux: execute scanner 1`] = `
4 "sonar-scanner \\
5   -Dsonar.projectKey=my-project \\
6   -Dsonar.sources=. \\
7   -Dsonar.host.url=http://localhost:9000"
8 `;
9
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"
17 "
18 `;
19
20 exports[`can choose build tools and copy provided settings: c++ (automatic) and other macos: execute scanner 1`] = `
21 "sonar-scanner \\
22   -Dsonar.projectKey=my-project \\
23   -Dsonar.sources=. \\
24   -Dsonar.host.url=http://localhost:9000"
25 `;
26
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"
34 "
35 `;
36
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""`;
38
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"
51 "
52 `;
53
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
58 "
59 `;
60
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"
68 "
69 `;
70
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"`;
72
73 exports[`can choose build tools and copy provided settings: c++ (manual) linux arm64: execute scanner 1`] = `
74 "sonar-scanner \\
75   -Dsonar.projectKey=my-project \\
76   -Dsonar.sources=. \\
77   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
78   -Dsonar.host.url=http://localhost:9000"
79 `;
80
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
85 "
86 `;
87
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"
95 "
96 `;
97
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"`;
99
100 exports[`can choose build tools and copy provided settings: c++ (manual) linux: execute scanner 1`] = `
101 "sonar-scanner \\
102   -Dsonar.projectKey=my-project \\
103   -Dsonar.sources=. \\
104   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
105   -Dsonar.host.url=http://localhost:9000"
106 `;
107
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
112 "
113 `;
114
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"
122 "
123 `;
124
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"`;
126
127 exports[`can choose build tools and copy provided settings: c++ (manual) macos: execute scanner 1`] = `
128 "sonar-scanner \\
129   -Dsonar.projectKey=my-project \\
130   -Dsonar.sources=. \\
131   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
132   -Dsonar.host.url=http://localhost:9000"
133 `;
134
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"
143 "
144 `;
145
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"
158 "
159 `;
160
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"`;
162
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""`;
164
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""`;
166
167 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
168
169 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
170
171 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
172
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""`;
174
175 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
176
177 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
178
179 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
180 "./gradlew sonar \\
181   -Dsonar.projectKey=my-project \\
182   -Dsonar.projectName='MyProject' \\
183   -Dsonar.host.url=http://localhost:9000 \\
184   -Dsonar.token=generatedtoken2"
185 `;
186
187 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
188 "plugins {
189   id "org.sonarqube" version "5.0.0.4638"
190 }"
191 `;
192
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"
199 `;
200
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
205 "
206 `;
207
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"
215 "
216 `;
217
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"`;
219
220 exports[`can choose build tools and copy provided settings: objective-c linux arm64: execute scanner 1`] = `
221 "sonar-scanner \\
222   -Dsonar.projectKey=my-project \\
223   -Dsonar.sources=. \\
224   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
225   -Dsonar.host.url=http://localhost:9000"
226 `;
227
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
232 "
233 `;
234
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"
242 "
243 `;
244
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"`;
246
247 exports[`can choose build tools and copy provided settings: objective-c linux: execute scanner 1`] = `
248 "sonar-scanner \\
249   -Dsonar.projectKey=my-project \\
250   -Dsonar.sources=. \\
251   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
252   -Dsonar.host.url=http://localhost:9000"
253 `;
254
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
259 "
260 `;
261
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"
269 "
270 `;
271
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"`;
273
274 exports[`can choose build tools and copy provided settings: objective-c macos: execute scanner 1`] = `
275 "sonar-scanner \\
276   -Dsonar.projectKey=my-project \\
277   -Dsonar.sources=. \\
278   -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json \\
279   -Dsonar.host.url=http://localhost:9000"
280 `;
281
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"
290 "
291 `;
292
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"
305 "
306 `;
307
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"`;
309
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""`;