language: python python: - 2.7 cache: pip install: - pip install awscli - pip install mkdocs - pip install mkdocs-material==0.2.4 script: - mkdocs build --clean # deploy: # on: # branch: master # repo: 'spearheadsys/issue-response-docs/' # provider: s3 # access_key_id: $AWS_ACCESS_KEY_ID # secret_access_key: $AWS_SECRET_ACCESS_KEY # bucket: $AWS_S3_BUCKET # skip_cleanup: true # local_dir: site # acl: public_read # after_deploy: # - aws s3 sync site/ s3://$AWS_S3_BUCKET --acl public-read --exclude "*.py*" --delete after_success: | if [ -n "$GITHUB_API_KEY" ]; then cd "$TRAVIS_BUILD_DIR" git reset gh-pagess mkdocs gh-deploy --remote-name https://$GITHUB_API_KEY@github.com/spearheadsys/issue-response-docs.git cd "$TRAVIS_BUILD_DIR" fi