aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorThomas <>2021-03-24 12:03:06 +0100
committerThomas <>2021-03-24 12:03:06 +0100
commit84d05bbce50208d3a6be94a0725ee6dab930a08f (patch)
treef236e036745ba51a854e045888de9c28c36897b2 /.gitlab-ci.yml
parent93969ae009ce6581936551f0a47905b2bc2da1c0 (diff)
downloadmoa-sig-84d05bbce50208d3a6be94a0725ee6dab930a08f.tar.gz
moa-sig-84d05bbce50208d3a6be94a0725ee6dab930a08f.tar.bz2
moa-sig-84d05bbce50208d3a6be94a0725ee6dab930a08f.zip
add first version of GitLab CI config
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml59
1 files changed, 59 insertions, 0 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"