我正在嘗試將聲納云與 Bitbucket 管道集成。我有一個簡單的測試項目,其中包含幾行名為 index.php 的單個文件。我完全不確定我應該遵循什么方法。我創建了由以下幾行組成的 sonar-project.properties 文件。sonar.sourceEncoding=UTF-8sonar.host.url=https://sonarcloud.io/dashboard?id=first_ftpsonar.projectKey=first_ftp這是我的 yml 文件image: aariacarterweir/lamp-gitftp:latestclone: depth: full # SonarCloud scanner needs the full history to assign issues properlydefinitions: caches: sonar: ~/.sonar/cache # Caching SonarCloud artifacts will speed up your build steps: - step: &build-test-sonarcloud name: Build, test and analyze on SonarCloud caches: - node - sonar script: - npm install --quiet - npm run test -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox - pipe: sonarsource/sonarcloud-scan:0.1.5 variables: SONAR_TOKEN: ${SONAR_TOKEN} EXTRA_ARGS: '-Dsonar.sources=src -Dsonar.tests=src -Dsonar.test.inclusions="**/testing/**,**/*.spec.ts" -Dsonar.typescript.lcov.reportPaths=coverage/lcov.info'當我查看 sonarcloud 網站時,它告訴我The main branch has no lines of code任何人都可以幫助我如何使用 bitbucket 為 php 項目正確配置聲納云。
- 2 回答
- 0 關注
- 991 瀏覽
添加回答
舉報
0/150
提交
取消