Skip to content

Commit d62f1c7

Browse files
committed
Add git fetch --unshallow step in Travis CI before SonarCloud builds
1 parent 58976a5 commit d62f1c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ before_install:
2222
- docker pull simverge/pdalc-build-deps:$DISTRO
2323

2424
script:
25+
- if [ "$SCAN" = "sonarcloud" ]; then git fetch --unshallow --tags --quiet; fi
2526
- chmod u+x $TRAVIS_BUILD_DIR/tests/travis/script.sh
2627
- docker run -e SCAN -e COVERITY_EMAIL -e COVERITY_TOKEN -e TRAVIS_COMMIT -e TRAVIS_BRANCH -e BUILD_TYPE -e DISTRO -v $TRAVIS_BUILD_DIR:/pdalc -t simverge/pdalc-build-deps:$DISTRO /pdalc/tests/travis/script.sh
2728
- if [ "$SCAN" = "sonarcloud" ]; then sonar-scanner; fi

0 commit comments

Comments
 (0)