You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OtherTutorial-it.tsx.snap 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`can choose build tools and copy provided settings: cfamily linux: execute build wrapper 1`] = `
  3. "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
  4. unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
  5. export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
  6. "
  7. `;
  8. exports[`can choose build tools and copy provided settings: cfamily linux: execute scanner 1`] = `
  9. "export SONAR_SCANNER_VERSION=5.0.1.3006
  10. export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
  11. 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
  12. unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
  13. export PATH=$SONAR_SCANNER_HOME/bin:$PATH
  14. export SONAR_SCANNER_OPTS="-server"
  15. "
  16. `;
  17. exports[`can choose build tools and copy provided settings: cfamily macos: execute build wrapper 1`] = `
  18. "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
  19. unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
  20. export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
  21. "
  22. `;
  23. exports[`can choose build tools and copy provided settings: cfamily macos: execute scanner 1`] = `
  24. "export SONAR_SCANNER_VERSION=5.0.1.3006
  25. export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
  26. 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
  27. unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
  28. export PATH=$SONAR_SCANNER_HOME/bin:$PATH
  29. export SONAR_SCANNER_OPTS="-server"
  30. "
  31. `;
  32. exports[`can choose build tools and copy provided settings: cfamily windows: execute build wrapper 1`] = `
  33. "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
  34. rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
  35. New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
  36. (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
  37. Add-Type -AssemblyName System.IO.Compression.FileSystem
  38. [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
  39. $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
  40. "
  41. `;
  42. exports[`can choose build tools and copy provided settings: cfamily windows: execute scanner 1`] = `
  43. "$env:SONAR_SCANNER_VERSION = "5.0.1.3006"
  44. $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
  45. $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
  46. rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
  47. New-Item -path $env:SONAR_SCANNER_HOME -type directory
  48. (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")
  49. Add-Type -AssemblyName System.IO.Compression.FileSystem
  50. [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
  51. rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
  52. $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
  53. $env:SONAR_SCANNER_OPTS="-server"
  54. "
  55. `;
  56. exports[`can choose build tools and copy provided settings: dotnet core: execute command 1 1`] = `"dotnet sonarscanner begin /k:"my-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="generatedtoken2""`;
  57. exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
  58. exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
  59. exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
  60. exports[`can choose build tools and copy provided settings: dotnet framework: execute command 1 1`] = `"SonarScanner.MSBuild.exe begin /k:"my-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="generatedtoken2""`;
  61. exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
  62. exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
  63. exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
  64. "./gradlew sonar \\
  65. -Dsonar.projectKey=my-project \\
  66. -Dsonar.projectName='MyProject' \\
  67. -Dsonar.host.url=http://localhost:9000 \\
  68. -Dsonar.token=generatedtoken2"
  69. `;
  70. exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
  71. "plugins {
  72. id "org.sonarqube" version "5.0.0.4638"
  73. }"
  74. `;
  75. exports[`can choose build tools and copy provided settings: maven: execute scanner 1`] = `
  76. "mvn clean verify sonar:sonar \\
  77. -Dsonar.projectKey=my-project \\
  78. -Dsonar.projectName='MyProject' \\
  79. -Dsonar.host.url=http://localhost:9000 \\
  80. -Dsonar.token=generatedtoken2"
  81. `;
  82. exports[`can choose build tools and copy provided settings: other linux: execute scanner 1`] = `
  83. "export SONAR_SCANNER_VERSION=5.0.1.3006
  84. export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
  85. 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
  86. unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
  87. export PATH=$SONAR_SCANNER_HOME/bin:$PATH
  88. export SONAR_SCANNER_OPTS="-server"
  89. "
  90. `;
  91. exports[`can choose build tools and copy provided settings: other macos: execute scanner 1`] = `
  92. "export SONAR_SCANNER_VERSION=5.0.1.3006
  93. export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
  94. 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
  95. unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
  96. export PATH=$SONAR_SCANNER_HOME/bin:$PATH
  97. export SONAR_SCANNER_OPTS="-server"
  98. "
  99. `;
  100. exports[`can choose build tools and copy provided settings: other windows: execute scanner 1`] = `
  101. "$env:SONAR_SCANNER_VERSION = "5.0.1.3006"
  102. $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
  103. $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
  104. rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
  105. New-Item -path $env:SONAR_SCANNER_HOME -type directory
  106. (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")
  107. Add-Type -AssemblyName System.IO.Compression.FileSystem
  108. [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
  109. rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
  110. $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
  111. $env:SONAR_SCANNER_OPTS="-server"
  112. "
  113. `;