Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulDuvall/625adc613384a719f54f8790705c7ca9 to your computer and use it in GitHub Desktop.
Save PaulDuvall/625adc613384a719f54f8790705c7ca9 to your computer and use it in GitHub Desktop.
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- node --version
- npm install newman --global
- yum install -y jq
pre_build:
commands:
- >-
aws s3 cp "s3://${S3_BUCKET}/postman-env-files/postman_environment.json"
.
- >-
aws s3 cp "s3://${S3_BUCKET}/postman-env-files/collection.json"
.
- chmod +x *.sh
- ./update-postman-env-file.sh ${SAM_STACK_NAME}
build:
commands:
- >-
newman run collection.json --environment postman_environment.json -r
junit
reports:
JUnitReports:
files:
- '**/*'
base-directory: newman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment