Skip to content

wojciech-zurek/newman-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Docker image with Newman for GitLab Continuous Integration Pipeline

Description

This image runs Newman-3.9.3 on latest Node-9.9.0 on Alpine-3.6.

This image does not have an entrypoint so it can be used in GitLab CI Pipeline.

Docker hub url:

Gitlab CI

Example .gitlab-ci.yml:

...your pipeline config...
stages:
  - postman-test

postman-test:
  stage: postman-test
  image: wojciechzurek/newman-ci
  script:
    - newman run path/to/collection.json -e  path/to/environments.json --reporters cli,html --reporter-html-export newman-results.html --color
  artifacts:
    when: always
    paths:
      - newman-results.html

Docker

Docker Pull Command

docker pull wojciechzurek/newman-ci

Docker Run Command

docker run wojciechzurek/newman-ci newman --help