forked from flussonic/openapi_handler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
41 lines (37 loc) · 890 Bytes
/
.gitlab-ci.yml
File metadata and controls
41 lines (37 loc) · 890 Bytes
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
stages:
- src
- test
prepare-src:
stage: src
script:
- docker build -t openapi_handler .
run-test:
stage: test
needs:
- prepare-src
script:
- mkdir -p test-logs
- docker run --rm -v ${PWD}/test-logs:/openapi_handler/test-logs openapi_handler make ci-test
artifacts:
reports:
junit: test-logs/*/junit_report.xml
when: always
name: "${CI_JOB_STAGE}_${BRANCH_NAME}-test"
expire_in: 1 week
paths:
- test-logs
run-test-legacy:
stage: test
needs:
- prepare-src
script:
- mkdir -p test-logs-legacy
- docker run --rm -v ${PWD}/test-logs-legacy:/openapi_handler/test-logs openapi_handler make ci-test-legacy
artifacts:
reports:
junit: test-logs-legacy/*/junit_report.xml
when: always
name: "${CI_JOB_STAGE}_${BRANCH_NAME}-test-legacy"
expire_in: 1 week
paths:
- test-logs-legacy