Created
September 1, 2018 15:20
-
-
Save autumn-n/3f0bb87a43d28d536462e3491770eb5e to your computer and use it in GitHub Desktop.
Configuration of .gitlab-ci.yml for newman (without docker)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
before_script: | |
- apt-get update -qq && apt-get install -y -qq curl | |
- curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
- apt-get install -y nodejs | |
- npm install newman -g | |
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
Don't you need to start the server before you can run newman tests?