-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
42 lines (38 loc) · 1.2 KB
/
.gitlab-ci.yml
File metadata and controls
42 lines (38 loc) · 1.2 KB
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
variables:
APP_NAME: $CI_PROJECT_NAME
stages:
- test
postman-tests-all:
stage: test
image:
name: postman/newman
entrypoint: [ "/bin/sh", "-c" ]
script:
- newman --version
- npm install -g newman-reporter-html
- newman run biosamples-api-tests.postman_collection.json --environment wwwint.postman_environment.json --env-var "WEBIN_USER=$WEBIN_USER" --env-var "vault:WEBIN_PASS=$WEBIN_PASS" --reporters cli,junit,html --reporter-junit-export newman-report.xml --reporter-html-export newman-report.html
rules:
- if: '$TRIGGER_SERVICE == "false" || $CI_COMMIT_BRANCH == "main"'
artifacts:
when: always
reports:
junit: newman-report.xml
paths:
- newman-report.html
expire_in: 7 days
postman-test-service:
stage: test
image:
name: postman/newman
entrypoint: [ "/bin/sh", "-c" ]
script:
- echo "$FOLDER"
- echo "$BSD_ENV".postman_environment.json
- |
newman run biosamples-api-tests.postman_collection.json \
--environment "$BSD_ENV".postman_environment.json \
--env-var "WEBIN_USER=$WEBIN_USER" \
--env-var "WEBIN_PASS=$WEBIN_PASS" \
--folder "$FOLDER"
rules:
- if: '$TRIGGER_SERVICE == "true"'