ci: only install ldoc for BUILD_APIDOC

The example tests are being run explicitly by now, and not implicitly
when building the docs.
This commit is contained in:
Daniel Hahler 2016-12-30 15:38:50 +01:00
parent 06eeef47d8
commit eb8b98eef3
1 changed files with 5 additions and 2 deletions

View File

@ -90,8 +90,11 @@ install:
- if [ "$DO_CHECKQA" = 1 ]; then travis_retry sudo luarocks install luacheck; fi
# Install ldoc for building docs.
- travis_retry sudo luarocks install ldoc
- travis_retry sudo luarocks install lua-discount
- |
if [ "$BUILD_APIDOC" = "true" ]; then
travis_retry sudo luarocks install ldoc
travis_retry sudo luarocks install lua-discount
fi
# Install dependencies for code coverage testing.
- if [ "$DO_COVERAGE" = "" ]; then export DO_COVERAGE=0; fi