Skip to content

Instantly share code, notes, and snippets.

@autumn-n
Created September 1, 2018 15:21
Show Gist options
  • Save autumn-n/95f79f672a9e60305ccba2020aef14cc to your computer and use it in GitHub Desktop.
Save autumn-n/95f79f672a9e60305ccba2020aef14cc to your computer and use it in GitHub Desktop.
Configuration of .gitlab-ci.yml for newman (docker)
variables:
POSTMAN_COLLECTION: https://api.getpostman.com/collections/${c_uid}?apikey=${apiKey}
POSTMAN_ENVIRONMENT: https://api.getpostman.com/environments/${e_uid}?apikey=${apiKey}
stages:
- some_stages
- postman
postman_job:
stage: postman
image: wojciechzurek/newman-ci
script:
- newman run ${POSTMAN_COLLECTION} -e ${POSTMAN_ENVIRONMENT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment