]> source.dussan.org Git - sonarqube.git/blob
d935a1644b46876ac1024c4209f1fdbff7564c54
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for "linux": local 1`] = `
4 <div>
5   <h4
6     className="spacer-bottom"
7   >
8     onboarding.analysis.sq_scanner.header.linux
9   </h4>
10   <p
11     className="spacer-bottom markdown"
12   >
13     <FormattedMessage
14       defaultMessage="onboarding.analysis.sq_scanner.text"
15       id="onboarding.analysis.sq_scanner.text"
16       values={
17         {
18           "dir": <code>
19             bin
20           </code>,
21           "env_var": <code>
22             PATH
23           </code>,
24           "link": <withAppStateContext(DocLink)
25             to="/analyzing-source-code/scanners/sonarscanner/"
26           >
27             onboarding.analysis.sq_scanner.docs_link
28           </withAppStateContext(DocLink)>,
29         }
30       }
31     />
32   </p>
33 </div>
34 `;
35
36 exports[`should render correctly for "linux": remote 1`] = `
37 <div>
38   <h4
39     className="spacer-bottom"
40   >
41     onboarding.analysis.sq_scanner.header.linux
42   </h4>
43   <CodeSnippet
44     snippet="export SONAR_SCANNER_VERSION=4.7.0.2747
45 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
46 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
47 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
48 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
49 export SONAR_SCANNER_OPTS="-server"
50 "
51   />
52   <h4
53     className="spacer-bottom big-spacer-top"
54   >
55     onboarding.analysis.sq_scanner.sonar_token_env.header
56   </h4>
57   <ul
58     className="list-styled"
59   >
60     <li
61       className="markdown"
62     >
63       onboarding.analysis.sq_scanner.sonar_token_env.var_name
64       :
65        
66       <code>
67         SONAR_TOKEN
68       </code>
69       <ClipboardButton
70         className="spacer-left"
71         copyValue="SONAR_TOKEN"
72       />
73     </li>
74     <li
75       className="markdown"
76     >
77       onboarding.analysis.sq_scanner.sonar_token_env.var_value
78       :
79        
80       <code>
81         token
82       </code>
83       <ClipboardButton
84         className="spacer-left"
85         copyValue="token"
86       />
87     </li>
88   </ul>
89 </div>
90 `;
91
92 exports[`should render correctly for "mac": local 1`] = `
93 <div>
94   <h4
95     className="spacer-bottom"
96   >
97     onboarding.analysis.sq_scanner.header.mac
98   </h4>
99   <p
100     className="spacer-bottom markdown"
101   >
102     <FormattedMessage
103       defaultMessage="onboarding.analysis.sq_scanner.text"
104       id="onboarding.analysis.sq_scanner.text"
105       values={
106         {
107           "dir": <code>
108             bin
109           </code>,
110           "env_var": <code>
111             PATH
112           </code>,
113           "link": <withAppStateContext(DocLink)
114             to="/analyzing-source-code/scanners/sonarscanner/"
115           >
116             onboarding.analysis.sq_scanner.docs_link
117           </withAppStateContext(DocLink)>,
118         }
119       }
120     />
121   </p>
122 </div>
123 `;
124
125 exports[`should render correctly for "mac": remote 1`] = `
126 <div>
127   <h4
128     className="spacer-bottom"
129   >
130     onboarding.analysis.sq_scanner.header.mac
131   </h4>
132   <CodeSnippet
133     snippet="export SONAR_SCANNER_VERSION=4.7.0.2747
134 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
135 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
136 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
137 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
138 export SONAR_SCANNER_OPTS="-server"
139 "
140   />
141   <h4
142     className="spacer-bottom big-spacer-top"
143   >
144     onboarding.analysis.sq_scanner.sonar_token_env.header
145   </h4>
146   <ul
147     className="list-styled"
148   >
149     <li
150       className="markdown"
151     >
152       onboarding.analysis.sq_scanner.sonar_token_env.var_name
153       :
154        
155       <code>
156         SONAR_TOKEN
157       </code>
158       <ClipboardButton
159         className="spacer-left"
160         copyValue="SONAR_TOKEN"
161       />
162     </li>
163     <li
164       className="markdown"
165     >
166       onboarding.analysis.sq_scanner.sonar_token_env.var_value
167       :
168        
169       <code>
170         token
171       </code>
172       <ClipboardButton
173         className="spacer-left"
174         copyValue="token"
175       />
176     </li>
177   </ul>
178 </div>
179 `;
180
181 exports[`should render correctly for "win": local 1`] = `
182 <div>
183   <h4
184     className="spacer-bottom"
185   >
186     onboarding.analysis.sq_scanner.header.win
187   </h4>
188   <p
189     className="spacer-bottom markdown"
190   >
191     <FormattedMessage
192       defaultMessage="onboarding.analysis.sq_scanner.text"
193       id="onboarding.analysis.sq_scanner.text"
194       values={
195         {
196           "dir": <code>
197             bin
198           </code>,
199           "env_var": <code>
200             %PATH%
201           </code>,
202           "link": <withAppStateContext(DocLink)
203             to="/analyzing-source-code/scanners/sonarscanner/"
204           >
205             onboarding.analysis.sq_scanner.docs_link
206           </withAppStateContext(DocLink)>,
207         }
208       }
209     />
210   </p>
211 </div>
212 `;
213
214 exports[`should render correctly for "win": remote 1`] = `
215 <div>
216   <h4
217     className="spacer-bottom"
218   >
219     onboarding.analysis.sq_scanner.header.win
220   </h4>
221   <CodeSnippet
222     snippet="$env:SONAR_SCANNER_VERSION = "4.7.0.2747"
223 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
224 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
225 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
226 New-Item -path $env:SONAR_SCANNER_HOME -type directory
227 (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")
228 Add-Type -AssemblyName System.IO.Compression.FileSystem
229 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
230 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
231 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
232 $env:SONAR_SCANNER_OPTS="-server"
233 "
234   />
235   <h4
236     className="spacer-bottom big-spacer-top"
237   >
238     onboarding.analysis.sq_scanner.sonar_token_env.header
239   </h4>
240   <ul
241     className="list-styled"
242   >
243     <li
244       className="markdown"
245     >
246       onboarding.analysis.sq_scanner.sonar_token_env.var_name
247       :
248        
249       <code>
250         SONAR_TOKEN
251       </code>
252       <ClipboardButton
253         className="spacer-left"
254         copyValue="SONAR_TOKEN"
255       />
256     </li>
257     <li
258       className="markdown"
259     >
260       onboarding.analysis.sq_scanner.sonar_token_env.var_value
261       :
262        
263       <code>
264         token
265       </code>
266       <ClipboardButton
267         className="spacer-left"
268         copyValue="token"
269       />
270     </li>
271   </ul>
272 </div>
273 `;