mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Generate documentation, deploy to gh-pages via Travis
This commit is contained in:
+17
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
Executable
+8
@@ -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
|
||||
Reference in New Issue
Block a user