Skip to content

Commit

Permalink
build: update sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Oct 27, 2019
1 parent 08f9a90 commit 64c9ce2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ java-11:
image: openjdk:11
script: ./gradlew clean build

java-12:
stage: test
image: gradle:jdk12 # latest gradle and jdk12
script: gradle clean build

check:
stage: check
image: openjdk:8
script:
- export JADX_LAST_TAG="$(git describe --abbrev=0 --tags)"
- export JADX_VERSION="${JADX_LAST_TAG:1}-dev-$(git rev-parse --short HEAD)"
- ./gradlew clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN -Dsonar.branch.name=dev
- ./gradlew clean sonarqube -Dsonar.host.url="${SONAR_HOST}" -Dsonar.projectKey=jadx -Dsonar.organization="${SONAR_ORG}" -Dsonar.login="${SONAR_TOKEN}" -Dsonar.branch.name=dev || echo "Skip sonar build and upload"
- ./gradlew clean dist
artifacts:
paths:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.sonarqube' version '2.7.1'
id 'org.sonarqube' version '2.8'
id 'com.github.ben-manes.versions' version '0.22.0'
id "com.diffplug.gradle.spotless" version "3.24.0"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

# run sonar checks
./gradlew clean sonarqube -Dsonar.host.url=${SONAR_HOST} -Dsonar.organization=${SONAR_ORG} -Dsonar.login=${SONAR_TOKEN} || echo "Skip sonar build and upload"
./gradlew clean sonarqube -Dsonar.host.url=${SONAR_HOST} -Dsonar.projectKey=jadx -Dsonar.organization=${SONAR_ORG} -Dsonar.login=${SONAR_TOKEN} || echo "Skip sonar build and upload"

# upload bundles to bintray unstable package
./gradlew clean dist
Expand Down

0 comments on commit 64c9ce2

Please sign in to comment.