dash-docs/.travis.yml
thephez 6bc7a37d4c
config - Travis config update (#44)
- Temporary fix for deploy 1.9 issue
2018-03-12 09:54:12 -04:00

65 lines
1.7 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
# Temp. fix for DPL 1.9 issue (https://github.com/travis-ci/travis-ci/issues/9312)
edge:
branch: v1.8.47
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