-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
59 lines (52 loc) · 1.07 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# (c) https://github.com/MontiCore/monticore
image: registry.git.rwth-aachen.de/monticore/container-registry/gradle:7.6.4-jdk11
# These are the default stages. You don't need to explicitly define them. But you could define any stages you need.
stages:
- build
# - test
- report
- deploy
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
build_gradle:
stage: build
script:
- "gradle assemble"
- "gradle testReport"
artifacts:
paths:
- "target"
expire_in: 1 week
deploy_gradle:
stage: deploy
script:
- "gradle publish -PmavenPassword=$pass -PmavenUser=$user"
only:
- master
#test_gradle:
# stage: test
# dependencies:
# - build_gradle
# cache:
# paths:
# - .gradle/wrapper
# - .gradle/caches
# key: ${CI_COMMIT_REF_SLUG}-gradle
# script:
# - "gradle testReport"
# artifacts:
# paths:
# - "target"
# expire_in: 1 week
pages:
stage: report
dependencies:
- build_gradle
cache: {}
script:
- mv target/reports/allTests public
artifacts:
paths:
- public
only:
- master