-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
74 lines (63 loc) · 1.56 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
stages:
- build
- test
- report
- deploy
.add-dev-local: &add-dev-local
before_script:
- wget $DOWNLOAD_DEV_LOCAL
- mkdir -p local_jars/dev-local/
- mv dev-local.jar local_jars/dev-local
cache:
key: one-key-to-rule-them-all
paths:
- ./.m2/repository
# ------------------------------------------------------------------------------
# Stage "test"
test:
image: clojure:openjdk-14-tools-deps-alpine
<<: *add-dev-local
script:
- clojure -Sdeps '{:mvn/local-repo "./.m2/repository"}' -A:test
artifacts:
paths:
- target/coverage/
expire_in: 1 hour
lint:
image: clojure:openjdk-14-tools-deps-alpine
<<: *add-dev-local
script:
- clojure -Sdeps '{:mvn/local-repo "./.m2/repository"}' -A:clj-kondo --lint src
allow_failure: true
when: always
up-to-date?:
image: clojure:openjdk-14-tools-deps-alpine
<<: *add-dev-local
script:
- clojure -Sdeps '{:mvn/local-repo "./.m2/repository"}' -A:ancient
allow_failure: true
when: always
# ------------------------------------------------------------------------------
# Stage "reports"
coverage-report:
image: python:3-alpine
stage: report
dependencies:
- test
script:
- wget -O - https://s3.cs.hhu.de/dialogo-ci/lcov_cobertura.py | python3 - target/coverage/lcov.info --output target/coverage/coverage.xml
artifacts:
reports:
cobertura: target/coverage/coverage.xml
pages:
stage: report
dependencies:
- test
script:
- mv target/coverage/ public/
artifacts:
paths:
- public
expire_in: 30 days
only:
- develop