forked from crossbario/autobahn-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis-deploy.sh
More file actions
executable file
·25 lines (21 loc) · 841 Bytes
/
.travis-deploy.sh
File metadata and controls
executable file
·25 lines (21 loc) · 841 Bytes
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
#!/bin/sh
# build the docs, source package and binary (executable). this will produce:
#
# - $HOME/crossbar-docs
#
# upload to "crossbar.io" company S3 bucket
# only show number of env vars .. should be 4 on master branch!
# https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions
# Travis CI makes encrypted variables and data available only to pull requests coming from the same repository.
echo 'aws env vars (should be 4 - but only on master branch!):'
env | grep AWS | wc -l
# set up awscli package
echo 'installing aws tools ..'
pip install awscli
which aws
aws --version
aws s3 ls ${AWS_S3_BUCKET_NAME}
# build and deploy latest docs
echo 'building and uploading docs ..'
tox -c tox.ini -e sphinx
aws s3 cp --recursive --acl public-read ${HOME}/crossbar-docs s3://${AWS_S3_BUCKET_NAME}/docs-latest