Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cache:
before_install:
###############
# Hugo, Docsy and dependencies are installed via npm
- travis_retry npm install # use npm rather than yarn - HUGO doesn't have that many dependencies
- travis_retry npm install --loglevel verbose # use npm rather than yarn - HUGO doesn't have that many dependencies
#
# Currently will use custom version of htmltest stored in /htmltest/htmltest
# This version makes the html.Parse much smaller
Expand All @@ -69,7 +69,9 @@ install:
# Append output to hugo.log file to print at the end of the travis job
# (see https://stackoverflow.com/questions/418896/how-to-redirect-output-to-a-file-and-stdout)

- ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log
- echo $(date) | tee -a $TRAVIS_BUILD_DIR/hugo.log
- ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH --logLevel debug 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log
- echo $(date) | tee -a $TRAVIS_BUILD_DIR/hugo.log

# normal htmltest takes too much memory - using a modified version which strips <aside> tag content
# NB - Set pipefail so that Travis CI sees the return code from `tee` and not from `htmltest` so it will always build.
Expand All @@ -81,7 +83,7 @@ install:
- chmod +x ./htmltest/htmltest
# Run htmltest - convert red (91) and green (92) aixterm colors with 8-bit versions (31 and 32).

- ./htmltest/htmltest 2>&1 | sed "s/\o033\[91/\o033\[31/g; s/\o033\[92/\o033\[32/g" |tee -a $TRAVIS_BUILD_DIR/hugo.log
# - ./htmltest/htmltest 2>&1 | sed "s/\o033\[91/\o033\[31/g; s/\o033\[92/\o033\[32/g" |tee -a $TRAVIS_BUILD_DIR/hugo.log

before_script:
##############
Expand Down