選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

PipeCommand-test.tsx.snap 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly for cfamily: branches enabled 1`] = `
  3. <Fragment>
  4. <CodeSnippet
  5. snippet="image: <image ready for your build toolchain>
  6. cache:
  7. paths:
  8. - .sonar
  9. stages:
  10. - download
  11. - build
  12. - scan
  13. download:
  14. stage: download
  15. script:
  16. - mkdir -p .sonar
  17. - curl -sSLo build-wrapper-linux-x86.zip $SONAR_HOST_URL/static/cpp/build-wrapper-linux-x86.zip
  18. - unzip -o build-wrapper-linux-x86.zip -d .sonar
  19. build:
  20. stage: build
  21. script:
  22. - .sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir .sonar/bw-output <your clean build command>
  23. sonarqube-check:
  24. stage: scan
  25. script:
  26. - curl -sSLo sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip
  27. - unzip -o sonar-scanner.zip -d .sonar
  28. - .sonar/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=.sonar/bw-output
  29. allow_failure: true"
  30. />
  31. <CompilationInfo />
  32. </Fragment>
  33. `;
  34. exports[`should render correctly for cfamily: branches not enabled 1`] = `
  35. <Fragment>
  36. <CodeSnippet
  37. snippet="image: <image ready for your build toolchain>
  38. cache:
  39. paths:
  40. - .sonar
  41. stages:
  42. - download
  43. - build
  44. - scan
  45. download:
  46. stage: download
  47. script:
  48. - mkdir -p .sonar
  49. - curl -sSLo build-wrapper-linux-x86.zip $SONAR_HOST_URL/static/cpp/build-wrapper-linux-x86.zip
  50. - unzip -o build-wrapper-linux-x86.zip -d .sonar
  51. build:
  52. stage: build
  53. script:
  54. - .sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir .sonar/bw-output <your clean build command>
  55. sonarqube-check:
  56. stage: scan
  57. script:
  58. - curl -sSLo sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip
  59. - unzip -o sonar-scanner.zip -d .sonar
  60. - .sonar/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=.sonar/bw-output
  61. allow_failure: true"
  62. />
  63. <CompilationInfo />
  64. </Fragment>
  65. `;
  66. exports[`should render correctly for dotnet: branches enabled 1`] = `
  67. <Fragment>
  68. <CodeSnippet
  69. snippet="sonarqube-check:
  70. image: mcr.microsoft.com/dotnet/core/sdk:latest
  71. variables:
  72. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  73. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  74. cache:
  75. key: \\"\${CI_JOB_NAME}\\"
  76. paths:
  77. - .sonar/cache
  78. script:
  79. - \\"apt-get update\\"
  80. - \\"apt-get install --yes openjdk-11-jre\\"
  81. - \\"dotnet tool install --global dotnet-sonarscanner\\"
  82. - \\"export PATH=\\\\\\"$PATH:$HOME/.dotnet/tools\\\\\\"\\"
  83. - \\"dotnet sonarscanner begin /k:\\\\\\"test\\\\\\" /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\" /d:\\\\\\"sonar.host.url=$SONAR_HOST_URL\\\\\\" \\"
  84. - \\"dotnet build\\"
  85. - \\"dotnet sonarscanner end /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\"\\"
  86. allow_failure: true
  87. only:
  88. - merge_requests
  89. - master # or the name of your main branch
  90. - develop
  91. "
  92. />
  93. </Fragment>
  94. `;
  95. exports[`should render correctly for dotnet: branches not enabled 1`] = `
  96. <Fragment>
  97. <CodeSnippet
  98. snippet="sonarqube-check:
  99. image: mcr.microsoft.com/dotnet/core/sdk:latest
  100. variables:
  101. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  102. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  103. cache:
  104. key: \\"\${CI_JOB_NAME}\\"
  105. paths:
  106. - .sonar/cache
  107. script:
  108. - \\"apt-get update\\"
  109. - \\"apt-get install --yes openjdk-11-jre\\"
  110. - \\"dotnet tool install --global dotnet-sonarscanner\\"
  111. - \\"export PATH=\\\\\\"$PATH:$HOME/.dotnet/tools\\\\\\"\\"
  112. - \\"dotnet sonarscanner begin /k:\\\\\\"test\\\\\\" /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\" /d:\\\\\\"sonar.host.url=$SONAR_HOST_URL\\\\\\" \\"
  113. - \\"dotnet build\\"
  114. - \\"dotnet sonarscanner end /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\"\\"
  115. allow_failure: true
  116. only:
  117. - merge_requests
  118. - master # or the name of your main branch
  119. - develop
  120. "
  121. />
  122. </Fragment>
  123. `;
  124. exports[`should render correctly for gradle: branches enabled 1`] = `
  125. <Fragment>
  126. <CodeSnippet
  127. snippet="sonarqube-check:
  128. image: gradle:jre11-slim
  129. variables:
  130. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  131. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  132. cache:
  133. key: \\"\${CI_JOB_NAME}\\"
  134. paths:
  135. - .sonar/cache
  136. script: gradle sonarqube
  137. allow_failure: true
  138. only:
  139. - merge_requests
  140. - master # or the name of your main branch
  141. - develop
  142. "
  143. />
  144. </Fragment>
  145. `;
  146. exports[`should render correctly for gradle: branches not enabled 1`] = `
  147. <Fragment>
  148. <CodeSnippet
  149. snippet="sonarqube-check:
  150. image: gradle:jre11-slim
  151. variables:
  152. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  153. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  154. cache:
  155. key: \\"\${CI_JOB_NAME}\\"
  156. paths:
  157. - .sonar/cache
  158. script: gradle sonarqube
  159. allow_failure: true
  160. only:
  161. - merge_requests
  162. - master # or the name of your main branch
  163. - develop
  164. "
  165. />
  166. </Fragment>
  167. `;
  168. exports[`should render correctly for maven: branches enabled 1`] = `
  169. <Fragment>
  170. <CodeSnippet
  171. snippet="sonarqube-check:
  172. image: maven:3.6.3-jdk-11
  173. variables:
  174. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  175. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  176. cache:
  177. key: \\"\${CI_JOB_NAME}\\"
  178. paths:
  179. - .sonar/cache
  180. script:
  181. - mvn verify sonar:sonar
  182. allow_failure: true
  183. only:
  184. - merge_requests
  185. - master # or the name of your main branch
  186. - develop
  187. "
  188. />
  189. </Fragment>
  190. `;
  191. exports[`should render correctly for maven: branches not enabled 1`] = `
  192. <Fragment>
  193. <CodeSnippet
  194. snippet="sonarqube-check:
  195. image: maven:3.6.3-jdk-11
  196. variables:
  197. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  198. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  199. cache:
  200. key: \\"\${CI_JOB_NAME}\\"
  201. paths:
  202. - .sonar/cache
  203. script:
  204. - mvn verify sonar:sonar
  205. allow_failure: true
  206. only:
  207. - merge_requests
  208. - master # or the name of your main branch
  209. - develop
  210. "
  211. />
  212. </Fragment>
  213. `;
  214. exports[`should render correctly for other: branches enabled 1`] = `
  215. <Fragment>
  216. <CodeSnippet
  217. snippet="sonarqube-check:
  218. image:
  219. name: sonarsource/sonar-scanner-cli:latest
  220. entrypoint: [\\"\\"]
  221. variables:
  222. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  223. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  224. cache:
  225. key: \\"\${CI_JOB_NAME}\\"
  226. paths:
  227. - .sonar/cache
  228. script:
  229. - sonar-scanner
  230. allow_failure: true
  231. only:
  232. - merge_requests
  233. - master # or the name of your main branch
  234. - develop
  235. "
  236. />
  237. </Fragment>
  238. `;
  239. exports[`should render correctly for other: branches not enabled 1`] = `
  240. <Fragment>
  241. <CodeSnippet
  242. snippet="sonarqube-check:
  243. image:
  244. name: sonarsource/sonar-scanner-cli:latest
  245. entrypoint: [\\"\\"]
  246. variables:
  247. SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
  248. GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
  249. cache:
  250. key: \\"\${CI_JOB_NAME}\\"
  251. paths:
  252. - .sonar/cache
  253. script:
  254. - sonar-scanner
  255. allow_failure: true
  256. only:
  257. - merge_requests
  258. - master # or the name of your main branch
  259. - develop
  260. "
  261. />
  262. </Fragment>
  263. `;