Commit 5a940a3b authored by Skylot's avatar Skylot

build: update gitlab config

parent 16b6345c
image: java:8
variables: variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false" GRADLE_OPTS: "-Dorg.gradle.daemon=false"
TERM: "dumb" TERM: "dumb"
before_script: before_script:
- chmod +x gradlew - chmod +x gradlew
stages: stages:
- build - test
- check
build: java-8:
stage: build stage: test
before_script: image: openjdk:8
- export JADX_LAST_TAG="$(git describe --abbrev=0 --tags)" script: ./gradlew clean build
- export JADX_VERSION="${JADX_LAST_TAG:1}-$(git rev-parse --short HEAD)"
java-11:
stage: test
image: openjdk:11
script: ./gradlew clean build
check:
stage: check
image: openjdk:8
script: script:
- ./gradlew -g /cache/.gradle clean build jacocoTestReport - export JADX_LAST_TAG="$(git describe --abbrev=0 --tags)"
- ./gradlew -g /cache/.gradle clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN - export JADX_VERSION="${JADX_LAST_TAG:1}-dev-$(git rev-parse --short HEAD)"
- ./gradlew -g /cache/.gradle clean dist - ./gradlew clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN -Dsonar.branch.name=dev
- ./gradlew clean dist
artifacts: artifacts:
paths: paths:
- build/jadx*.zip - build/jadx*.zip
- build/jadx*.exe
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment