-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
30 lines (30 loc) · 819 Bytes
/
.travis.yml
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
27
28
29
30
language: python
cache: pip
python:
- '3.7'
install:
- pip install awscli
- pip install aws-sam-cli
jobs:
include:
- stage: test
script:
- pip install pytest
- pip install -e .
- pytest . -v
- stage: deploy
script:
- sam validate
- sam build --debug
- sam package --s3-bucket my-travis-deployment-bucket --output-template-file out.yml --region eu-west-1
- sam deploy --template-file out.yml --stack-name example-stack-name --region eu-west-1 --no-fail-on-empty-changeset --capabilities CAPABILITY_IAM
skip_cleanup: true
if: branch = master
notifications:
email:
on_failure: always
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
- secure: your-encrypted-aws-access-key-id
- secure: your-encrypted-aws-secret-access-key