-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig.yml
More file actions
26 lines (21 loc) · 725 Bytes
/
config.yml
File metadata and controls
26 lines (21 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: 2
jobs:
build:
docker:
- image: circleci/python:3.7
steps:
- checkout
- run:
name: Install dependencies
command: |
sudo pip install awscli
sudo pip install aws-sam-cli
- run:
name: Run tests
working_directory: src/
command: python3 -m unittest discover
- run:
name: Deploy with SAM
command: |
sam build && sam package --s3-bucket unit-test-example --output-template-file packaged-template.yaml --region us-east-1
sam deploy --template-file ./packaged-template.yaml --stack-name unit-test-example --region us-east-1 --capabilities CAPABILITY_IAM