-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (29 loc) · 941 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
python:
- '3.6'
branches:
only: master
install:
- pip install awscli
- pip install aws-sam-cli
script:
- aws s3 cp "highscore-service/swagger.yaml" s3://highscore-service
- sam build -t highscore-service/template.yaml
- sam package --template-file .aws-sam/build/template.yaml --s3-bucket highscore-service --output-template-file highscore-service/packaged.yaml
- bash build.sh
deploy:
- provider: script
script: sam deploy --template-file highscore-service/packaged.yaml --capabilities CAPABILITY_IAM --stack-name tetris-stack
skip_cleanup: true
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: "tetris-frontend"
skip_cleanup: true
region: $AWS_DEFAULT_REGION
local_dir: frontend/react-tetris/build
env:
global:
- AWS_DEFAULT_REGION=ap-southeast-2
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_KEY