forked from mlevit/aws-auto-cleanup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 935 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
dist: xenial
language: python
python:
- "3.7"
install:
- pip install awscli --upgrade --quiet
- pip install codacy-coverage --upgrade --quiet
- pip install coverage --upgrade --quiet
- pip install moto --upgrade --quiet
- pip install --requirement requirements.txt --upgrade --quiet
- npm install serverless --global --quiet
- npm install serverless-iam-roles-per-function --quiet
- npm install serverless-s3-remover --quiet
- serverless plugin install --name serverless-python-requirements
before_script:
- export BOTO_CONFIG=/dev/null
script:
- coverage run -m pytest --disable-warnings
- coverage xml
- python-codacy-coverage -r coverage.xml
- serverless deploy --stage $TRAVIS_BUILD_NUMBER --region ap-southeast-2
- serverless invoke --function AutoCleanup --stage $TRAVIS_BUILD_NUMBER --region ap-southeast-2 --type DryRun
- serverless remove --stage $TRAVIS_BUILD_NUMBER --region ap-southeast-2