-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (35 loc) · 2.77 KB
/
.travis.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
language: node_js
node_js:
- 17 # Current stable
install:
- npm install newman
script: echo "npm test disabled"
before_script:
- node --version
- npm --version
- node_modules/.bin/newman --version
jobs:
include:
- stage: "API smoke test"
- name: "DEV1"
if: type != api OR env(TEST_JOB) == "dev1"
script: node_modules/.bin/newman run tests/API_contract_tests.postman_collection.json -e tests/DEV1.postman_environment.json --env-var "loginEmail=$USER_EMAIL" --env-var "loginPw=$USER_PASSWORD" --env-var "clinicianEmail=$CLINIC_EMAIL" --env-var "clinicianPw=$CLINIC_PASSWORD"
- name: "QA1"
if: type != api OR env(TEST_JOB) == "qa1"
script: node_modules/.bin/newman run tests/API_contract_tests.postman_collection.json -e tests/QA1.postman_environment.json --env-var "loginEmail=$USER_EMAIL" --env-var "loginPw=$USER_PASSWORD" --env-var "clinicianEmail=$CLINIC_EMAIL" --env-var "clinicianPw=$CLINIC_PASSWORD"
- name: "QA2"
if: type != api OR env(TEST_JOB) == "qa2"
script: node_modules/.bin/newman run tests/API_contract_tests.postman_collection.json -e tests/QA2.postman_environment.json --env-var "loginEmail=$USER_EMAIL" --env-var "loginPw=$USER_PASSWORD" --env-var "clinicianEmail=$CLINIC_EMAIL" --env-var "clinicianPw=$CLINIC_PASSWORD"
- name: "INT"
script: node_modules/.bin/newman run tests/API_contract_tests.postman_collection.json -e tests/INT.postman_environment.json --env-var "loginEmail=$USER_EMAIL" --env-var "loginPw=$USER_PASSWORD" --env-var "clinicianEmail=$CLINIC_EMAIL" --env-var "clinicianPw=$CLINIC_PASSWORD"
if: type != api OR env(TEST_JOB) == "int"
- name: "PRODUCTION"
script: node_modules/.bin/newman run tests/API_contract_tests.postman_collection.json -e tests/PRODUCTION.postman_environment.json --env-var "loginEmail=$USER_EMAIL" --env-var "loginPw=$USER_PASSWORD" --env-var "clinicianEmail=$CLINIC_EMAIL" --env-var "clinicianPw=$CLINIC_PASSWORD"
if: type != api OR env(TEST_JOB) == "production"
notifications:
slack:
rooms:
- secure: cEsWARJlhTbkxpMkCLLdedX/p1BzlSk2kuJAYQNsysYrxXq2jfTW8/Kynibb3jsfh7BeUWToyiiP2qMBDUTJy+A/lToCxgwlhQAsuyvbAidoiYjXi6kWok8VH6gjz9MZc5TRs5uZ7BXPcdHCXmmjdJJq20KAXfjrQFjQ3Gkbyp78TAiEdzboXGLzYuX91vaSrP1W+TUg09BRkhTA0AFohdXn/XJhL1eORM81GxaX8shKJI0QMtoxUvu5QJI7I05MUbOS83+BxN/RezV+oibGahN6H8iseUa1w39O8VSWAnLc8tSHjeEf7jLFSfDoGR70KWke4DaqhUpi55yOxv2Rl5Hhb611ZOjFOxPgiroX8M3cHOfyiqvlPs8aRXDbDoJqic1iDwCSr9vckrzZ2sHKJQnRz3heHIe757+7cECbju87ZqBvjQtrcJMpi7XHWDq12BO8mpYQAzPjjRRLxd5r8ENP2DIDYUHU+EA8HiEI0uao3P1SqyJHNmkKN0kC4Z1fL/BNpxU3nU89zsesUH3YJkIY3+0RhpUblFIa0shWET7zgZy10YDeflRkqGyFAeH8P4Gkl9zwCSMknwAg85UHm6a31MQFn68gymfYF8ifjw4z0fTJc1zzdV6HZBvYj2NYBqtJbfkr3MbkjvGGMEHS18spjr8jC6VbH2S4OYDUk6A=
on_success: change
on_failure: always
on_pull_requests: false