-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
48 lines (44 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
stages:
- test
- reports
api_smoke_tests:
image: python:slim-buster
stage: test
script:
- pip install -r requirements.txt
- py.cleanup -p && py.test -m smoke --alluredir ExecutionResults/
artifacts:
name: "api-smoke-$CI_COMMIT_TAG"
expire_in: 1 week
when: always
paths:
- ./Logs
- ./ExecutionResults
api_regression_tests:
image: python:slim-buster
stage: test
script:
- pip install -r requirements.txt
- py.cleanup -p && py.test -m regression --alluredir ExecutionResults/
artifacts:
name: "api-regression-$CI_COMMIT_TAG"
expire_in: 1 week
when: always
paths:
- ./Logs
- ./ExecutionResults
reports:
image: gitlab/dind
stage: reports
dependencies:
- api_smoke_tests
- api_regression_tests
script:
- docker pull elixirops/docker-allure
- docker run -v $(pwd)/allure-report:/allure-report -v $(pwd)/allure-results:/ExecutionResults elixirops/docker-allure allure generate /ExecutionResults --clean -o /allure-report
artifacts:
name: "api-$CI_COMMIT_TAG"
expire_in: 1 week
when: always
paths:
- ./allure-report