forked from shotgunsoftware/developer.shotgunsoftware.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (56 loc) · 1.73 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 2019 Autodesk, Inc. All rights reserved.
#
# Use of this software is subject to the terms of the Autodesk license agreement
# provided at the time of installation or download, or which otherwise accompanies
# this software in either electronic or hard copy form.
#
language: python
python:
- "3.8"
env:
global:
- DOC_PATH=""
- S3_BUCKET=sg-devdocs
- S3_WEB_URL=http://sg-devdocs.s3-website-us-east-1.amazonaws.com
jobs:
include:
# Because the org name is still shotgunsoftware, we deploy to
# shotgunsoftware.github.io, but target developer.shotgridsoftware.com since
# that will be our new custom domain.
- name: developer.shotgridsoftware.com
env:
DOC_URL=https://developer.shotgridsoftware.com
REPO_URL=shotgunsoftware/shotgunsoftware.github.io
CNAME=developer.shotgridsoftware.com
cache:
pip: true
directories:
# manually cache ruby dependencies
- $TRAVIS_BUILD_DIR/tk-doc-generator/vendor/bundle
before_install:
# required dependency for sphinx
- sudo apt-get install -y pandoc
install:
#
# jekyll dependencies
- bundle install --gemfile=./tk-doc-generator/Gemfile --deployment
#
# sphinx dependnecies
- pip install -r ./tk-doc-generator/requirements.txt
script:
# script that runs the CI and handles S3 previews
- python ./tk-doc-generator/travis-generate-docs.py
deploy:
# When commiting to master, auto-deploy to github-pages
# This will copy the contents of the _build folder to gh-pages branch and push
- provider: pages
repo: $REPO_URL
local-dir: ./_build
target-branch: master
verbose: true
skip-cleanup: true
github-token: $GITHUB_TOKEN
fqdn: $CNAME
on:
# only do this when on the master branch
branch: master