]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15034 Show compilation info for CFamilly only
authorMathieu Suen <mathieu.suen@sonarsource.com>
Thu, 1 Jul 2021 14:48:36 +0000 (16:48 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 1 Jul 2021 20:03:20 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx
server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/__tests__/__snapshots__/PipeCommand-test.tsx.snap

index 1635c12ebc4e573d2b04e74da3fa2e5af68606de..e4113bd8e548a620703d88ff715665bcf4238d4f 100644 (file)
@@ -115,7 +115,7 @@ sonarqube-check:
   return (
     <>
       <CodeSnippet snippet={command} />
-      <CompilationInfo />
+      {buildTool === BuildTools.CFamily && <CompilationInfo />}
     </>
   );
 }
index 674361c114ca5aa3dbd3ce4893fb81057798881e..4be8e72f3d8eb3963e671deb47cbb74867c6699d 100644 (file)
@@ -103,7 +103,6 @@ exports[`should render correctly for dotnet: branches enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;
 
@@ -134,7 +133,6 @@ exports[`should render correctly for dotnet: branches not enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;
 
@@ -158,7 +156,6 @@ exports[`should render correctly for gradle: branches enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;
 
@@ -182,7 +179,6 @@ exports[`should render correctly for gradle: branches not enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;
 
@@ -207,7 +203,6 @@ exports[`should render correctly for maven: branches enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;
 
@@ -232,7 +227,6 @@ exports[`should render correctly for maven: branches not enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;
 
@@ -259,7 +253,6 @@ exports[`should render correctly for other: branches enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;
 
@@ -286,6 +279,5 @@ exports[`should render correctly for other: branches not enabled 1`] = `
     - develop
 "
   />
-  <CompilationInfo />
 </Fragment>
 `;