forked from sjorssnoeren/api-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 3.55 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
- npm
- directories:
- .cache
- /home/travis/.nvm
env:
global:
# Upload credentials
- secure: qA8IivKhQQ4oebUhbj4+jOipwWS8wOF6n7isSp1enlUXybRS1UgahSZ62nrlv1e/jGYw2oh+tdF3R93qa9ej2W+GyqJ2V/GtbgMUR/hSgLkcSN3ay4MgDSmWYRJJFBTpglv7Id3y/4y5oTo6SBjZr6mZ2ylRkOu+FxHlgDHtgk20ophi5hhzt7bTVyFGuZ9jtzPYhbVBrXHdrEKknQfnlOpkhnIjZrBiaZDq1OpliRJT/TRF5wdN0k2NvVLVZsYcaXEZnxOCtz0f4zW4HdgAJek78BSrSQhAxDK54QF3DauZodLKUfVIb2CQr/pXME33OByudA7Ryrroo+r2W8HSsLu69DiSe2U+MHmpf8W4JPhgDW6IwTgJDV8bVwxIrYNdnNax+MiVpXhLoVQD5bkfXMwv2EG5i2+774YYEnrLJxxuiq4YGr0qw+Y0/g8iM8sauVab3FCZjD+i0/YdmivF3lJa0U3KFSKWznqIFbZxKzKrvm8lNwCLgvGbKHG1OOK3KDCekP8Gdl4sOPLG82TUZmo/Gi/2IoQ8s4F9qLvyQ4ANAsSYeDreWv5nysC6nx9Fxk/3gWbOVn9kL7ppJpYYi289IyqNEviMbvw814aNCfooPdquYP3I+rGoIIgRAkwnAM7uq2Qa07BYfzuLNmZi/L6ebIO7HT2s06LiCRvlHD0=
- secure: ZFLl/A0aJE1bfHcq+DXRwm2t9o29XQsTJWOzFaMpc4rS8rXwCcXhOKN5iAT4o6ZXvxHQRUA+yFr7Xa3L5T1J/lLb3m29Hjrn2xUlyNo8MpT2BDi3dtRZ+mS8abbGyuBEIAq/B67E5G5WZ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nNzByYTTgapH90YXDuWY69+fwWukg1PSfOnvGUyNurSZmgDpSeWSDkkTJLVZqfFBz1aqU0t+arY4VkVPlfn/IcycPgUY5knjaBQmgMowm/KyXDwdm2J/5byY6Fe4FI/G5Ht7bhvhbZE8/QZRMHzWDU3047Z0GOCQT3SV94qpnASm+s1I8/11ONS6s=
- secure: AoJqE/GBwW7Ci8ukf6h6QEtYFvarlph86BDtk42wQKU47i5xG51/MwX7Rx1ggcFSsL4JquXLvrQgqzfMKX9OywHIHZgwo0wAxUQNEjpBSbl7LeY9/V1Qfn5gPEohuwoeclCMIYqEUtEewR9EIp2Qr5xZ8oT41/+6qZFMciVaebGAOt8RUcvSvjDrUjPYaYhAayXuj3xC91ENd2YjXHR0DkA71u7mGtNK7PkbpMgxI3POLW1Lr2d+0WnqYVMsKjZJLUXU5SzsT2i2YEPf8G7VAGov+UWZWTJ784C+QQxzf/tMCVhPhDt6JSovr1a4Uo8mG7ZNDRMFYX2LK1JhELu+1HVKlj+P9ZqeKW/6uQbp90fjoTh370008Jk2MdpwBXVdX0YwNIJqri3H00ssPhdje9RpcezbJNWgZ02fTk01guIrDFM/08+61E5Nm4asF7WGgZ5lUCPt6kYCxkUpJ93Tb3VdfPVThFJavULqljLS/imwtXb/kOaatsHHJfsiBElEjYZN4MWQ45Kg/s31vI3481NNZ8FTjGX2bYzCwY0caBc6N38WNERuaTSzFihV+pbFhi0+khvZMedrj9/Nj+fto40iSDUriQ/C8SQFHZgGJ8ypcGxGiLoUi2spGTiOJMvP868xanwoBm8/LeNibE8SYaorsoQ751eXs6OthaE0sBo=
- AWS_BUCKET="20180313-docs"
- AWS_REGION="eu-central-1"
install:
- nvm install $(cat .nvmrc)
- travis_retry npm install --no-optional --no-audit
- pip install -r requirements.txt
script:
- make html-production
before_deploy:
- pip install awscli
deploy:
on:
branch: master
provider: script
script: bash deploy.sh
skip_cleanup: true
after_deploy:
# Bust the CloudFront edge cache, invalidate every object in the distribution
- aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths "/*"
- aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_CDN_ID} --paths "/*"