-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
47 lines (45 loc) · 1.09 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
44
45
46
47
sudo: true
language: python
python:
- '2.7'
sudo: required
services:
- docker
before_install:
- docker pull f5devcentral/containthedocs:latest
install:
- pip install awscli --upgrade
script:
- ./scripts/docker-docs.sh ./scripts/test-docs.sh
deploy:
# DEPLOY TO STAGING
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_STAGING
local_dir: docs/_build/html
upload_dir: /cloud/openstack/v1
on:
branch: master
repo: F5Networks/f5-openstack-docs
# DEPLOY TO PRODUCTION
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_BUCKET
local_dir: docs/_build/html
upload_dir: /cloud/openstack/v1
on:
branch: v1
repo: F5Networks/f5-openstack-docs
after_deploy:
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths /cloud/openstack/v1/
notifications:
slack:
rooms:
- f5openstackdev:$SLACK_TOKEN#f5-openstack-docs
- f5openstackdev:$SLACK_TOKEN#build_status
on_success: change
on_failure: always