Generate documentation, deploy to gh-pages via Travis

This commit is contained in:
Tad Hardesty
2019-07-07 16:30:10 -07:00
parent 944b11b0fc
commit c1e274e97e
3 changed files with 25 additions and 9 deletions
+17 -1
View File
@@ -18,7 +18,7 @@ matrix:
- python3-setuptools
install:
- tools/travis/install_build_tools.sh
- tools/travis/install_dreamchecker.sh
- tools/travis/install_spaceman_dmm.sh dreamchecker
script:
- tools/travis/check_filedirs.sh tgstation.dme
- tools/travis/check_changelogs.sh
@@ -75,3 +75,19 @@ matrix:
script:
- tools/travis/dm.sh -DTRAVISBUILDING tgstation.dme || travis_terminate 1
- tools/travis/run_server.sh
- name: "Generate Documentation"
# Only run for non-PR commits to the real master branch.
if: branch = master AND head_branch IS blank
install:
- tools/travis/install_spaceman_dmm.sh dmdoc
before_script:
# Travis checks out a hash, try to get back on a branch.
- 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
-8
View File
@@ -1,8 +0,0 @@
#!/bin/bash
set -euo pipefail
source dependencies.sh
wget -O ~/dreamchecker "https://github.com/SpaceManiac/SpacemanDMM/releases/download/$SPACEMAN_DMM_VERSION/dreamchecker"
chmod +x ~/dreamchecker
~/dreamchecker --version
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
source dependencies.sh
wget -O ~/$1 "https://github.com/SpaceManiac/SpacemanDMM/releases/download/$SPACEMAN_DMM_VERSION/$1"
chmod +x ~/$1
~/$1 --version