-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.82 KB
/
.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
31
32
33
34
35
36
37
language: python
python:
- '3.6'
cache:
- pip
install:
- 'pip install pipenv'
- 'pipenv install --dev --deploy --ignore-pipfile'
services:
- postgres
script:
- coverage run -m pytest
- coverage report --omit '/usr/*,/home/travis/virtualenv/*' -m --skip-covered --fail-under=100
- find . -iname "*.py" | xargs pylint -d "c0111, R0801, C0103, C0411"
- flake8
- |
echo "Checking if the web lambda is under 256MiB" && \
zappa package -o irs-web-lambda.zip web && \
size=$(unzip -l irs-web-lambda.zip | tail -n1 | awk '{ print $1 }'); max=262144000; echo $size; if [ "$size" -gt "$max" ]; then false; fi
- |
echo "Checking if the css lambda is under 256MiB" && \
zappa package -o irs-css-lambda.zip web && \
size=$(unzip -l irs-css-lambda.zip | tail -n1 | awk '{ print $1 }'); max=262144000; echo $size; if [ "$size" -gt "$max" ]; then false; fi
deploy:
- provider: script
script: zappa update -z irs-web-lambda.zip web
skip_cleanup: true
on:
branch: master
- provider: script
script: zappa update -z irs-css-lambda.zip css
skip_cleanup: true
on:
branch: master
notifications:
slack:
secure: YBb8/uqXg4DpIxzsKQfTD8oiFDHf09tM76ymqkPfp02ITUwgY4C0h1xIM1PQgXlOdC+gVOudkrbbwjJQH58fxjM1KNADIHKJ2Q7wg5mjhtPwDxiLeYi2c1U7xPwN8+sMoxM4Nke3r1ZuB/6dsGv16LGawlHLWN0pGL7ZrnBm3aoegKkIUg/WZD6VlsmbtEgIrwbQVS/6TeM+xs3KBx5U45P+d8VAMy++uKmAny/GnJ02vVwffGHCf/GaGKgfFTNadBIvuBUnTpwTsUuwlmr7QVKIVWJUTxMTjA0ZcnjU2zydBzLIOJIhF0xA/GbmLJLJ4UvTFuzO4lpgW8SjWMTIIqMIRpV7r4Ry3NK4oP6RRGkQh7+mVUqie9NXtvZjFCO8XwicitPA8feLCnyZPIYY3w9NmARe4EnPKOwXjGDMg31/FcpeKiJRQcZ9lhsTpCqau6WwnpKec4RPbEuNmIMAc7z0+TgZKbwFe+nxXgwZHhy3Ofq+NYkHjLXx3kSWPQR51Yl5pU9iwvepyrtDsxm59CtxX7wpxo217SD/ArU8rEsID3WtZPbncUh3o6yNnCoUo89nP3Rlx6pOldyLk4LOiQXzkCbPDfznVM9umf3qSywy1iY2qgCnTMjXQgwh3KzJEPHbKJsRIeYiy3rL2Ztc36exKRQJUkGxnMTdI7cYt20=