aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2021-03-24 13:01:51 +0100
committerThomas <>2021-03-24 13:01:51 +0100
commit697a290400d2ee5f148fdf3356683d0f436dd0ab (patch)
treef4d27f6a94ab0e6aae6f5d6d7a73191daefad6b4
parent835a395f3ecb7477b5b67e9da9bf3af58c86473a (diff)
downloadmoa-sig-697a290400d2ee5f148fdf3356683d0f436dd0ab.tar.gz
moa-sig-697a290400d2ee5f148fdf3356683d0f436dd0ab.tar.bz2
moa-sig-697a290400d2ee5f148fdf3356683d0f436dd0ab.zip
GitLab CI update again
-rw-r--r--.gitlab-ci.yml26
-rw-r--r--moaSig/common/build.gradle5
-rw-r--r--moaSig/moa-sig-lib/build.gradle2
3 files changed, 27 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 56f443c..c94aebb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,8 @@ variables:
LANGUAGE: "en_US"
LIB_NAME: "ms_specific"
GIT_DEPTH: "2"
- SECURE_LOG_LEVEL: "debug"
+ SECURE_LOG_LEVEL: "debug"
+ PROJECT_PACKAGE: '${CI_PROJECT_DIR}/moaSig/moa-sig/build/distributions/*.zip'
PROJECT_RELEASE_PACKAGE: "../release/"
include:
@@ -16,7 +17,7 @@ include:
stages:
- assemble
- test
-# - package
+ - package
- release
cache:
@@ -33,13 +34,32 @@ assemble:
- tags
script: |
cd ./moaSig
- ./gradlew clean assemble --warning-mode all
+ ./gradlew clean build --warning-mode all
artifacts:
when: always
+release_packaging:
+ stage: package
+ tags:
+ - docker
+ except:
+ - tags
+ script: |
+ cd ./moaSig
+ ./gradlew assemble
+ artifacts:
+ when: always
+ name: "${CI_PROJECT_NAME}-${CI_COMMIT_SHORT_SHA}"
+ reports:
+ dotenv: variables.env
+ paths:
+ - $PROJECT_PACKAGE
+
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
+ tags:
+ - docker
needs:
- job: assemble
artifacts: true
diff --git a/moaSig/common/build.gradle b/moaSig/common/build.gradle
index 5e9122b..7f5ee6d 100644
--- a/moaSig/common/build.gradle
+++ b/moaSig/common/build.gradle
@@ -14,10 +14,11 @@ task testJar(type: Jar, dependsOn: testClasses) {
}
configurations {
- tests
+ testArtifacts.extendsFrom testCompile
}
artifacts {
- archives testJar
+ testArtifacts testJar
+ //archives testJar
}
diff --git a/moaSig/moa-sig-lib/build.gradle b/moaSig/moa-sig-lib/build.gradle
index bb1a8d3..6a62098 100644
--- a/moaSig/moa-sig-lib/build.gradle
+++ b/moaSig/moa-sig-lib/build.gradle
@@ -9,7 +9,7 @@ distributions {
dependencies {
implementation project(':common')
- testImplementation project(path: ':common')
+ testImplementation project(path: ':common', configuration: 'testArtifacts')
api fileTree(dir: '../libs', include: '*.jar')
api group: 'at.gv.egovernment.moa.sig', name: 'tsl-lib', version: '2.0.4'