Skip to content

Commit 119ff41

Browse files
committed
Improve documentation of travis build scripts
1 parent a6dc848 commit 119ff41

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

travis/sonarqube.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
#
4+
# Sonarqube analysis cannot be made when building pull requests because secure
5+
# variables are not available in such builds. To prevent build failures, the
6+
# sonarqube target is only invoked if not building a pull request.
7+
#
8+
39
function main {
410
require_no_pull_request
511
./gradlew sonarqube

travis/switch-to-branch.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
#
44
# When building branches Travis does not check out the branch but a specific
5-
# commit. This results in the working copy being in "detached HEAD" state. The
6-
# breaks the logic for deriving version numbers from branch names in the build
7-
# script.
5+
# commit. This results in the working copy being in "detached HEAD" state.
6+
# This breaks the logic for deriving version numbers from branch names in the
7+
# build script.
88
#
99
# This script checks if the current build corresponds to the tip of a branch.
10-
# If it is then the branch is checked out.
10+
# If it does then the branch is checked out.
1111
#
1212

1313
function main {

0 commit comments

Comments
 (0)