dash-docs/.travis.yml
thephez a3e446bbb0
Travis-CI deploy to GH Pages (#21)
build - Travis-CI deploy to GH Pages
 - Scripts/config necessary to allow automatic build/deploy from Travis-CI
2018-02-05 16:21:58 -05:00

61 lines
1.6 KiB
YAML

language: ruby
rvm:
- "2.5.0"
sudo: false
cache: bundler
cache:
directories:
- $TRAVIS_BUILD_DIR/doxygen-install
env:
# http://docs.travis-ci.com/user/environment-variables/#Global-Variables
global:
- BITCOINORG_BUILD_TYPE=deployment
- DOXYFILE: Doxyfile-dashdocs
# Install dependencies
addons:
apt:
packages:
- flex
- bison
- build-essential
- graphviz
before_install:
- gem update --system
- gem install bundler
- cd $TRAVIS_BUILD_DIR
- chmod +x scripts/build-install-doxygen.sh
- ./scripts/build-install-doxygen.sh
script: make travis
# Generate and deploy documentation
after_success:
- cd $TRAVIS_BUILD_DIR
- chmod +x scripts/generateDocumentationAndDeploy.sh
- ./scripts/generateDocumentationAndDeploy.sh
deploy:
# Set these environment variables in travis-ci.org settings for the repo:
#
# GITHUB_TOKEN: token that allows Travis to deploy to GitHub (mark secure)
# DEPLOY_REPO_NAME: GitHub repo to deploy to (i.e dash-docs/dash-docs.github.io)
# DEPLOY_TARGET_BRANCH: Branch to deploy to (must be master for page to work correctly)
#
# *** NOTE: the target branch is overwritten on deployment. Use caution to
# avoid inadvertently overwriting something
#
# DEPLOY_SOURCE_BRANCH: Branch to deploy from
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: false
on:
branch: $DEPLOY_SOURCE_BRANCH
verbose: false
local-dir: _site/
repo: $DEPLOY_REPO_NAME
target_branch: $DEPLOY_TARGET_BRANCH