Skip to content

Instantly share code, notes, and snippets.

@yanak
Created March 7, 2019 06:10
Show Gist options
  • Save yanak/1152fe3b2b6b024a8bbb72e01075c73c to your computer and use it in GitHub Desktop.
Save yanak/1152fe3b2b6b024a8bbb72e01075c73c to your computer and use it in GitHub Desktop.
A AWS CodeBuild buildspec.yaml for Python
version: 0.2
phases:
pre_build:
commands:
- pip install -r my-api/requirements.txt
build:
commands:
- python -m unittest discover -s my-api
artifacts:
files:
- '**/*'
base-directory: my-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment