]> source.dussan.org Git - sonarqube.git/blob
42c9604d362b7ed8f4caa27db5981769f4c235af
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for "linux": local 1`] = `
4 <div
5   className="spacer-bottom"
6 >
7   <h4
8     className="spacer-bottom"
9   >
10     onboarding.analysis.build_wrapper.header.linux
11   </h4>
12   <p
13     className="spacer-bottom markdown"
14   >
15     <FormattedMessage
16       defaultMessage="onboarding.analysis.build_wrapper.text"
17       id="onboarding.analysis.build_wrapper.text"
18       values={
19         {
20           "env_var": <code>
21             PATH
22           </code>,
23         }
24       }
25     />
26   </p>
27   <p>
28     <a
29       className="button"
30       download="build-wrapper-linux-x86.zip"
31       href="/static/cpp/build-wrapper-linux-x86.zip"
32       rel="noopener noreferrer"
33       target="_blank"
34     >
35       download_verb
36     </a>
37   </p>
38 </div>
39 `;
40
41 exports[`should render correctly for "linux": remote 1`] = `
42 <div
43   className="spacer-bottom"
44 >
45   <h4
46     className="spacer-bottom"
47   >
48     onboarding.analysis.build_wrapper.header.linux
49   </h4>
50   <CodeSnippet
51     snippet="curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://example.com/static/cpp/build-wrapper-linux-x86.zip
52 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
53 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
54 "
55   />
56 </div>
57 `;
58
59 exports[`should render correctly for "mac": local 1`] = `
60 <div
61   className="spacer-bottom"
62 >
63   <h4
64     className="spacer-bottom"
65   >
66     onboarding.analysis.build_wrapper.header.mac
67   </h4>
68   <p
69     className="spacer-bottom markdown"
70   >
71     <FormattedMessage
72       defaultMessage="onboarding.analysis.build_wrapper.text"
73       id="onboarding.analysis.build_wrapper.text"
74       values={
75         {
76           "env_var": <code>
77             PATH
78           </code>,
79         }
80       }
81     />
82   </p>
83   <p>
84     <a
85       className="button"
86       download="build-wrapper-macosx-x86.zip"
87       href="/static/cpp/build-wrapper-macosx-x86.zip"
88       rel="noopener noreferrer"
89       target="_blank"
90     >
91       download_verb
92     </a>
93   </p>
94 </div>
95 `;
96
97 exports[`should render correctly for "mac": remote 1`] = `
98 <div
99   className="spacer-bottom"
100 >
101   <h4
102     className="spacer-bottom"
103   >
104     onboarding.analysis.build_wrapper.header.mac
105   </h4>
106   <CodeSnippet
107     snippet="curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://example.com/static/cpp/build-wrapper-macosx-x86.zip
108 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
109 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
110 "
111   />
112 </div>
113 `;
114
115 exports[`should render correctly for "win": local 1`] = `
116 <div
117   className="spacer-bottom"
118 >
119   <h4
120     className="spacer-bottom"
121   >
122     onboarding.analysis.build_wrapper.header.win
123   </h4>
124   <p
125     className="spacer-bottom markdown"
126   >
127     <FormattedMessage
128       defaultMessage="onboarding.analysis.build_wrapper.text"
129       id="onboarding.analysis.build_wrapper.text"
130       values={
131         {
132           "env_var": <code>
133             %PATH%
134           </code>,
135         }
136       }
137     />
138   </p>
139   <p>
140     <a
141       className="button"
142       download="build-wrapper-win-x86.zip"
143       href="/static/cpp/build-wrapper-win-x86.zip"
144       rel="noopener noreferrer"
145       target="_blank"
146     >
147       download_verb
148     </a>
149   </p>
150 </div>
151 `;
152
153 exports[`should render correctly for "win": remote 1`] = `
154 <div
155   className="spacer-bottom"
156 >
157   <h4
158     className="spacer-bottom"
159   >
160     onboarding.analysis.build_wrapper.header.win
161   </h4>
162   <CodeSnippet
163     snippet="$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
164 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
165 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
166 (New-Object System.Net.WebClient).DownloadFile("http://example.com/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
167 Add-Type -AssemblyName System.IO.Compression.FileSystem
168 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
169 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
170 "
171   />
172 </div>
173 `;