-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
31 lines (31 loc) · 2.14 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
language: python
cache: pip
python:
- '3.7'
install:
- pip install awscli cfn-lint
script:
- cfn-lint -I -f parseable *.yaml
- |
for template in $(ls *.yaml); do
echo "Validating template: ${template}"
aws cloudformation validate-template --template-body file://${template} > /dev/null
done
env:
global:
- AWS_DEFAULT_REGION=us-east-1
# AWS_ACCESS_KEY_ID
- secure: O4bh1lexhxAWfUkrUGIUTf8u71uX7KHBs7CAe4tIO3htQTFe6Z8k8PrdI3gdfXOR2OPy5uRW4j8CZR7srf+nF6vMgb39OYqBsmzsXWpL+fOC6d3cWgAaftCWxmqBEI/2v3khxdXrK0q/VrRgp+O/xjvi0+OSk4Kp/zekHeoqoHsgYx0bkx8M3aY9TJFL034x2r1pjy9mj7Eo6haTF5Nm3AdpUwvOIOfAfTDP5RbOgm/COEji9OqZUg35tDl4bty23tsK+15Eu2zuheOLjb2iRfww/shJGk6z5vLiiG/hh+RQf/XT43iShVUYyY0l/2L1m+HE1dawOm3hSqS/GO8FG3KujEJYEGLenwzaaGVj55IjYW0E0QY6KQE8ql4gOt2CHAzK/S6U/0llgnZ2ZKCBoGL9t+CFe75S9ZSZJsLhl8LkGbDyEmR+T6ANif70kRLqiPSMLH5xHTfpf7/PjW9bL+XDJzOO0eF7G++0jLinXst72kbPms1IwOzkrXi625GI9yUPhpS8fU5b/u6fi6dhnizZ6JyYEHF7aVXx+NQ1h2cycCkTwq4KDUv49VC9aixtZiZB2l65TduQw95BZ8hOzQl5uE39892GzKSYAs0gJ2q/72KdsXr7spoT/rlUpwu4JluUQvSkglPQ35uoFjd6WE/5U0NHsixUVlfAriNRiHc=
# AWS_SECRET_ACCESS_KEY
- secure: UgSuLr08ONqGJ5W5BLfVGC47P8AHh8/4u89GQEaR36Z1UdEo2e1buFOdMjZuBccsidB721LRCgn4yn+QafswTD7PvF7K/KoybUmseu3yR8LTf1HXInvYhqDnzI463i79B9A99GHFfjl/gZe4rNWYjCaJwIrAPkpsc11YOZU59BErL8RVwP8mCLXVlH4bEMUQFXHIddmDBBVV4M7+Dc1UBWc+ntHJPPoMpuzYJl7Lq32c5JPKs9Q3eEJuSnS3mAKCISobAG84Ck2VvcCxMfYJ/OARMl5eNmBZkLTAV3alSlrhhbwRzpAKc4YnmaWz6WJ49tNhZSwABPl+Om6LYiMVJg2a35Ocg7ru/5nz5VhaNUPCQeSOMmV2cM49MIdL4ZH/1hoB4StST4/vjcWQ5+HSIQEuEpEJx43J+oklIu8mgac9TpblgeoI50kryadFwgTqiAqMepsEvG9JKTIgcTOhb1ijAl+IVoKWLns04t2+oHuTFbqUrC6IlEi+5nATXUng65e1yiySZVgWuLwQyLa1Sajmgi9TiAKiUlTxt2eIzT7ok5SRSJxFZX3yGKXSw1SYi0knazQ2BUvcWsDbwLrp/SkQkzDh9ALjdT2027vtdIJviR+nyfzpKgx2PAmY5/JhzGK5pEZtE25XmOs1QLLC/XVKeDOp9t7Atgpl0QVW5x8=
deploy:
- provider: script
script: aws s3 sync . s3://aws-native-chef-server/ --exclude "*" --include "*.yaml" --include "files/*" --acl public-read
skip_cleanup: true
on:
branch: master
- provider: script
script: aws s3 sync . s3://aws-native-chef-server/${TRAVIS_TAG#v}/ --exclude "*" --include "*.yaml" --include "files/*" --acl public-read
skip_cleanup: true
on:
tags: true