A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
travis: improve our detection of whether we are on a pull request
[simgrid.git]
/
tools
/
internal
/
travis-sonarqube.sh
diff --git
a/tools/internal/travis-sonarqube.sh
b/tools/internal/travis-sonarqube.sh
index
d069347
..
406f86f
100755
(executable)
--- a/
tools/internal/travis-sonarqube.sh
+++ b/
tools/internal/travis-sonarqube.sh
@@
-40,7
+40,7
@@
installBuildWrapper
ctest --output-on-failure --timeout 100
# Only run sonar on master (not on pull requests)
-if [
`git rev-parse --abbrev-ref HEAD` != "master
" ] ; then
+if [
"$TRAVIS_PULL_REQUEST" != "false
" ] ; then
exit 0
fi