-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
43 lines (35 loc) · 1.01 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
38
39
40
41
42
43
language: python
python: '3.6'
sudo: false
# We don't care about Travis' python versions, we install conda anyway
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
- PYTHONPATH=$TRAVIS_BUILD_DIR:$PYTHONPATH
install:
- pip install awscli
- pip install boto3
# install libs from the requirements of each single lambda
- for i in src/*/; do pip install -r $i"requirements.txt"; done
script:
# run tests
- py.test -vv -r sxX
before_deploy:
- mkdir -p dist
# create zip for each lambda folder in src
- for i in src/*/; do .travis/build_lambda.sh "$i"; done
- cp src/*.zip dist
# deploy:
# provider: s3
# access_key_id: $AWS_ACCESS_KEY_ID
# secret_access_key: $AWS_SECRET_ACCESS_KEY
# bucket: $AWS_BUCKET
# region: $AWS_BUCKET_REGION
# local_dir: dist
# upload-dir: deployments/lambdas/travis_build
# acl: private # keep them private
# skip_cleanup: true
# on:
# all_branches: true
notifications:
email: true