-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
19 lines (19 loc) · 756 Bytes
/
buildspec.yml
File metadata and controls
19 lines (19 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: 0.2
phases:
install:
commands:
# Install all dependencies (including dependencies for running tests)
- pip install -r requirements.txt
pre_build:
commands:
# Discover and run unit tests in the '__tests__' directory
- python -m pytest tests/ -v
# Remove all unit tests to reduce the size of the package that will be ultimately uploaded to Lambda
- rm -rf tests
build:
commands:
# Use AWS SAM to package the application by using AWS CloudFormation
- aws cloudformation package --template template.yaml --s3-bucket $S3_BUCKET --output-template template-export.yaml
artifacts:
files:
- template-export.yaml