aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2021-03-24 12:03:06 +0100
committerThomas <>2021-03-24 12:03:06 +0100
commit84d05bbce50208d3a6be94a0725ee6dab930a08f (patch)
treef236e036745ba51a854e045888de9c28c36897b2
parent93969ae009ce6581936551f0a47905b2bc2da1c0 (diff)
downloadmoa-sig-84d05bbce50208d3a6be94a0725ee6dab930a08f.tar.gz
moa-sig-84d05bbce50208d3a6be94a0725ee6dab930a08f.tar.bz2
moa-sig-84d05bbce50208d3a6be94a0725ee6dab930a08f.zip
add first version of GitLab CI config
-rw-r--r--.gitlab-ci.yml59
-rw-r--r--README.md (renamed from moaSig/README.md)0
-rw-r--r--moaSig/settings.gradle1
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"