Skip to content

Commit

Permalink
Make refs/remotes/origin known to SonarCloud
Browse files Browse the repository at this point in the history
SonarCloud gives warnings like "Could not find ref 'master' in refs/heads or refs/remotes/origin".
It may be the reason why it is not decorating PR anymore, so here is an attempt to fix the issue.
  • Loading branch information
echebbi committed Mar 16, 2019
1 parent 21fa776 commit 39e9a06
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ install: true
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 10 # give xvfb some time to start
- git fetch --unshallow
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch origin
# Prevent installed packages from being used during build
- rm -rfv "$HOME/.m2/repository/fr/kazejiyu/ekumi/"

Expand Down
23 changes: 23 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sonar.projectName=EKumi

# =====================================================
# Meta-data for the project
# =====================================================

sonar.links.homepage=https://github.com/KazeJiyu/ekumi
sonar.links.ci=https://travis-ci.org/KazeJiyu/ekumi
sonar.links.scm=https://github.com/KazeJiyu/ekumi
sonar.links.issue=https://github.com/KazeJiyu/ekumi/issues


# =====================================================
# Properties that will be shared amongst all modules
# =====================================================

sonar.host.url=https://sonarcloud.io

# =====================================================
# Java config
# =====================================================

sonar.java.source=8

0 comments on commit 39e9a06

Please sign in to comment.