1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly for "linux": local 1`] = `
6 className="spacer-bottom"
8 onboarding.analysis.sq_scanner.header.linux
11 className="spacer-bottom markdown"
14 defaultMessage="onboarding.analysis.sq_scanner.text"
15 id="onboarding.analysis.sq_scanner.text"
24 "link": <withAppStateContext(DocLink)
25 to="/analyzing-source-code/scanners/sonarscanner/"
27 onboarding.analysis.sq_scanner.docs_link
28 </withAppStateContext(DocLink)>,
36 exports[`should render correctly for "linux": remote 1`] = `
39 className="spacer-bottom"
41 onboarding.analysis.sq_scanner.header.linux
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"
53 className="spacer-bottom big-spacer-top"
55 onboarding.analysis.sq_scanner.sonar_token_env.header
58 className="list-styled"
63 onboarding.analysis.sq_scanner.sonar_token_env.var_name
70 className="spacer-left"
71 copyValue="SONAR_TOKEN"
77 onboarding.analysis.sq_scanner.sonar_token_env.var_value
84 className="spacer-left"
92 exports[`should render correctly for "mac": local 1`] = `
95 className="spacer-bottom"
97 onboarding.analysis.sq_scanner.header.mac
100 className="spacer-bottom markdown"
103 defaultMessage="onboarding.analysis.sq_scanner.text"
104 id="onboarding.analysis.sq_scanner.text"
113 "link": <withAppStateContext(DocLink)
114 to="/analyzing-source-code/scanners/sonarscanner/"
116 onboarding.analysis.sq_scanner.docs_link
117 </withAppStateContext(DocLink)>,
125 exports[`should render correctly for "mac": remote 1`] = `
128 className="spacer-bottom"
130 onboarding.analysis.sq_scanner.header.mac
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"
142 className="spacer-bottom big-spacer-top"
144 onboarding.analysis.sq_scanner.sonar_token_env.header
147 className="list-styled"
152 onboarding.analysis.sq_scanner.sonar_token_env.var_name
159 className="spacer-left"
160 copyValue="SONAR_TOKEN"
166 onboarding.analysis.sq_scanner.sonar_token_env.var_value
173 className="spacer-left"
181 exports[`should render correctly for "win": local 1`] = `
184 className="spacer-bottom"
186 onboarding.analysis.sq_scanner.header.win
189 className="spacer-bottom markdown"
192 defaultMessage="onboarding.analysis.sq_scanner.text"
193 id="onboarding.analysis.sq_scanner.text"
202 "link": <withAppStateContext(DocLink)
203 to="/analyzing-source-code/scanners/sonarscanner/"
205 onboarding.analysis.sq_scanner.docs_link
206 </withAppStateContext(DocLink)>,
214 exports[`should render correctly for "win": remote 1`] = `
217 className="spacer-bottom"
219 onboarding.analysis.sq_scanner.header.win
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"
236 className="spacer-bottom big-spacer-top"
238 onboarding.analysis.sq_scanner.sonar_token_env.header
241 className="list-styled"
246 onboarding.analysis.sq_scanner.sonar_token_env.var_name
253 className="spacer-left"
254 copyValue="SONAR_TOKEN"
260 onboarding.analysis.sq_scanner.sonar_token_env.var_value
267 className="spacer-left"