-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (49 loc) · 1.12 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
image: docker:19.03.0
services:
- docker:19.03.0-dind
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
stages:
- build-ci-container
- execute-tests
- publish-coverage
- release
build-ci-container:
stage: build-ci-container
script: '/bin/bash ci/build-ci-container.sh "${CI_REGISTRY_IMAGE}/ci-container:latest"'
only:
- master
- release
coverage:
stage: execute-tests
except:
- release
- tags
script: '/bin/bash ci/execute-tests.sh "${CI_REGISTRY_IMAGE}/ci-container:latest"'
artifacts:
paths:
- target/scala-2.13/scoverage-report/
pages:
stage: publish-coverage
script:
- mv target/scala-2.13/scoverage-report/ public/
- echo "Coverage reports is available at ${CI_PAGES_DOMAIN}"
artifacts:
paths:
- public
expire_in: 30 days
only:
- master
release:
stage: release
when: manual
script:
- apk add git
- '/bin/bash ci/release.sh "${CI_REGISTRY_IMAGE}/ci-container:latest"'
only:
- release
before_script:
- apk update
- apk add bash
- echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY