diff --git a/.travis.yml b/.travis.yml index 06a2e8218..b29b909e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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