Skip to content

Instantly share code, notes, and snippets.

@SpaceManiac
Created October 5, 2019 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SpaceManiac/c59c467b5077324cf3ae954ff0e238f9 to your computer and use it in GitHub Desktop.
Save SpaceManiac/c59c467b5077324cf3ae954ff0e238f9 to your computer and use it in GitHub Desktop.
Travis YML file to run dmdoc and upload its output to GitHub pages
language: generic
dist: xenial
sudo: false
branches:
except:
- ___TGS3TempBranch
- ___TGSTempBranch
matrix:
include:
- name: "DreamChecker"
install:
- wget -O ~/dreamchecker "https://github.com/SpaceManiac/SpacemanDMM/releases/download/suite-1.0/dreamchecker"
- chmod +x ~/dreamchecker
- ~/dreamchecker --version
script:
- ~/dreamchecker
- name: "Generate Documentation"
# Only run for non-PR commits to the real master branch
if: branch = master AND head_branch IS blank
install:
- wget -O ~/dmdoc "https://github.com/SpaceManiac/SpacemanDMM/releases/download/suite-1.0/dmdoc"
- chmod +x ~/dmdoc
- ~/dmdoc --version
before_script:
# Try to put git back on a branch name if it isn't already.
- git checkout -qf $(git name-rev --name-only HEAD) || true
script:
- ~/dmdoc
deploy:
provider: pages
skip_cleanup: true
local_dir: dmdoc
github_token: $DMDOC_GITHUB_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment