Browse Source

Re-enable analysis

tags/7.5
Simon Brandhof 6 years ago
parent
commit
8011b50e01
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      travis.sh

+ 3
- 5
travis.sh View File



elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo 'Build and analyze master' echo 'Build and analyze master'
# FIXME analysis disabled for now
./gradlew --no-daemon --console plain \ ./gradlew --no-daemon --console plain \
-DbuildNumber=$BUILD_NUMBER \ -DbuildNumber=$BUILD_NUMBER \
build artifactoryPublish -PjacocoEnabled=true -Prelease=true \
build sonarqube artifactoryPublish -PjacocoEnabled=true -Prelease=true \
-Dsonar.host.url=$SONAR_HOST_URL \ -Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \ -Dsonar.login=$SONAR_TOKEN \
-Dsonar.projectVersion=$INITIAL_VERSION \ -Dsonar.projectVersion=$INITIAL_VERSION \


elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo 'Build release branch' echo 'Build release branch'
# FIXME analysis disabled for now
./gradlew --no-daemon --console plain \ ./gradlew --no-daemon --console plain \
-DbuildNumber=$BUILD_NUMBER \ -DbuildNumber=$BUILD_NUMBER \
build artifactoryPublish -PjacocoEnabled=true -Prelease=true \
build sonarqube artifactoryPublish -PjacocoEnabled=true -Prelease=true \
-Dsonar.host.url=$SONAR_HOST_URL \ -Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \ -Dsonar.login=$SONAR_TOKEN \
-Dsonar.branch.name=$TRAVIS_BRANCH \ -Dsonar.branch.name=$TRAVIS_BRANCH \
echo 'Build and analyze internal pull request' echo 'Build and analyze internal pull request'
./gradlew --no-daemon --console plain \ ./gradlew --no-daemon --console plain \
-DbuildNumber=$BUILD_NUMBER \ -DbuildNumber=$BUILD_NUMBER \
build artifactoryPublish -PjacocoEnabled=true -Prelease=true \
build sonarqube artifactoryPublish -PjacocoEnabled=true -Prelease=true \
-Dsonar.host.url=$SONAR_HOST_URL \ -Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \ -Dsonar.login=$SONAR_TOKEN \
-Dsonar.analysis.buildNumber=$BUILD_NUMBER \ -Dsonar.analysis.buildNumber=$BUILD_NUMBER \

Loading…
Cancel
Save