Build docs on CI before packaging

This commit is contained in:
Oliver Hamlet
2016-09-22 17:31:03 +01:00
parent aefffaef12
commit c345ea8300
2 changed files with 14 additions and 0 deletions
+11
View File
@@ -47,6 +47,16 @@ install:
- bower install
- chmod +x scripts/travis/install_boost.sh
- scripts/travis/install_boost.sh
# Install packages for generating documentation
- pip install --user sphinx breathe sphinx_rtd_theme
# Add sphinx-build to PATH
- export PATH="$HOME/.local/bin:$PATH"
# Don't install Doxygen from the repositories, it also gets the LaTeX packages
# so is a ~ 700 MB download.
- wget ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.12.linux.bin.tar.gz
- tar -xf doxygen-1.8.12.linux.bin.tar.gz
# Add Doxygen binary path to PATH
- export PATH="$PWD/doxygen-1.8.12/bin:$PATH"
before_script:
# Move into the cloned LOOT repo build path.
@@ -67,6 +77,7 @@ after_success:
# Get the full repo history before trying to run the archiver.
- git fetch --unshallow
- node scripts/potomo.js
- sphinx-build -b html docs build/docs/html
- node scripts/archive.js
# Need to replace the HEAD branch descriptor in the archive filenames
- for ARCHIVE in build/*.tar.xz; do mv $ARCHIVE $(echo $ARCHIVE | sed "s/HEAD/$TRAVIS_BRANCH/"); done
+3
View File
@@ -16,6 +16,8 @@ environment:
secure: yoODjVeYw01Vg2idJgxMBOkyII/TO3yb6OZfxtzBh/F5z3ZTDW6CHBOiH4AyiX7Y
install:
- choco install doxygen.portable
- python -m pip install sphinx breathe sphinx_rtd_theme
- npm install
- .\node_modules\.bin\bower install
- ps: .\scripts\appveyor\install_boost.ps1
@@ -37,6 +39,7 @@ test_script:
after_test:
- cd %APPVEYOR_BUILD_FOLDER%
- C:\Python27\Scripts\sphinx-build -b html docs build\docs\html
- node scripts\potomo.js
- node scripts\archive.js
# AppVeyor checks out a specific commit, but that means the archive script