From 98e4cda08a82be9832b0ee04e7a06069385531ab Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Tue, 16 Jun 2020 13:04:24 +0300 Subject: [PATCH] Add building the docs to travis --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index c7b12ca86..70e94f53a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,15 @@ install: - node --version - npm --version +# linuxbrew (for hugo) +- test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) +- test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) +- test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile +- echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile + +# hugo (for documentation) +- brew install hugo + before_script: # Set the server config to `testing`. This is required for for the UTs to pass. - python monkey/monkey_island/cc/set_server_config.py testing @@ -68,6 +77,10 @@ script: - JS_WARNINGS_AMOUNT_UPPER_LIMIT=490 - eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # Test for max warnings +# Build documentation +- cd $TRAVIS_BUILD_DIR/docs +- hugo --verbose + after_success: # Upload code coverage results to codecov.io, see https://github.com/codecov/codecov-bash for more information - bash <(curl -s https://codecov.io/bash)