diff options
-rw-r--r-- | .gitlab-ci.yml | 59 | ||||
-rw-r--r-- | README.md (renamed from moaSig/README.md) | 0 | ||||
-rw-r--r-- | moaSig/settings.gradle | 1 |
3 files changed, 59 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..56f443c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,59 @@ +image: gradle:6.8.3-jdk11 + +variables: + LC_ALL: "en_US.UTF-8" + LANG: "en_US.UTF-8" + LANGUAGE: "en_US" + LIB_NAME: "ms_specific" + GIT_DEPTH: "2" + SECURE_LOG_LEVEL: "debug" + PROJECT_RELEASE_PACKAGE: "../release/" + +include: + - template: Dependency-Scanning.gitlab-ci.yml + - template: Secret-Detection.gitlab-ci.yml + +stages: + - assemble + - test +# - package + - release + +cache: + paths: + - .m2/repository + - .gradle/wrapper + - .gradle/caches + +assemble: + stage: assemble + tags: + - docker + except: + - tags + script: | + cd ./moaSig + ./gradlew clean assemble --warning-mode all + artifacts: + when: always + +release: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + needs: + - job: assemble + artifacts: true + when: manual + only: + - master + script: | + echo "Releasing version $VERSION of $LIB_NAME" + echo "Publishing version $VERSION to public EGIZ maven" + cd ./moaSig + ./gradlew release + artifacts: + name: "${CI_PROJECT_NAME}-${CI_COMMIT_SHORT_SHA}-release" + expire_in: never + paths: + - "../release/${VERSION}/moa-spss-${VERSION}.zip" + - "../release/${VERSION}/moa-spss-lib-${VERSION}.zip" diff --git a/moaSig/README.md b/README.md index eec4db2..eec4db2 100644 --- a/moaSig/README.md +++ b/README.md diff --git a/moaSig/settings.gradle b/moaSig/settings.gradle index 222a5bd..86077eb 100644 --- a/moaSig/settings.gradle +++ b/moaSig/settings.gradle @@ -1,2 +1 @@ - include "common", "moa-sig", "moa-sig-lib", "moa-asic" |