#6750 Fetched full git history for blame and updated report paths

This commit is contained in:
Jamie Newbon 2020-08-24 16:42:14 +01:00
parent d9578e85b8
commit 841f422773

View file

@ -14,6 +14,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Sonar - name: Run Sonar
run: | run: |
@ -35,7 +37,7 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_COVERAGE=ON .. cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_COVERAGE=ON ..
. ./version . ./version
echo "Building, output redirected to file due to verbrosity this may take 10-15 mins to complete..." echo "Building, output redirected to file due to verbrosity this may take 10-15 mins to complete..."
build-wrapper-linux-x86-64 --out-dir bw-output make -j 2>&1 > output.txt build-wrapper-linux-x86-64 --out-dir bw-output make -j > output.txt 2>&1
echo "Outputting last 200 lines of the build..." echo "Outputting last 200 lines of the build..."
tail -200 output.txt tail -200 output.txt
@ -50,7 +52,7 @@ jobs:
-Dsonar.exclusions=./ext/**,**/build-release/** \ -Dsonar.exclusions=./ext/**,**/build-release/** \
-Dsonar.cfamily.build-wrapper-output=bw-output \ -Dsonar.cfamily.build-wrapper-output=bw-output \
-Dsonar.host.url=https://sonarcloud.io -Dsonar.host.url=https://sonarcloud.io
-Dsonar.cxx.coverage.reportPath=./build-release/unit_coverage.xml -Dsonar.cxx.coverage.reportPath=unit_coverage.xml
-Dsonar.cxx.clangtidy.reportPath=./build-release/output.txt -Dsonar.cxx.clangtidy.reportPath=output.txt
env: env:
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}