forked from unbroken-dome/gradle-helm-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
42 lines (37 loc) · 906 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
image: registry.git.rzc.fr/marc/docker-images/java-builder-8:latest
stages:
- "build"
- "test"
- "publish"
before_script:
- GRADLE_USER_HOME="$(pwd)/.gradle"
- export GRADLE_USER_HOME
build:
stage: build
script: ./gradlew assemble --info --stacktrace
cache:
- key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- "**/build"
- .gradle
test:
stage: test
script: ./gradlew check --info --stacktrace
artifacts:
when: always
reports:
junit: "**/build/test-results/*/**/TEST-*.xml"
cache:
- key: "$CI_COMMIT_REF_NAME"
paths:
- "**/build"
- .gradle
publish:
stage: publish
script: ./gradlew publishPlugins "-Pgradle.publish.key=$GRADLE_PUBLISH_KEY" "-Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET" --info --stacktrace
cache:
- key: "$CI_COMMIT_REF_NAME"
paths:
- "**/build"
- .gradle