Add building the docs to travis

This commit is contained in:
Shay Nehmad 2020-06-16 13:04:24 +03:00
parent fedb15bc5d
commit 98e4cda08a
1 changed files with 13 additions and 0 deletions

View File

@ -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)