Skip to content
Closed
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
35 changes: 19 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- 20.9 # latest LTS version ('node' will give latest version, 'lts/*' will give LTS version )
- 24.15 # latest LTS version ('node' will give latest version, 'lts/*' will give LTS version )
arch: amd64 # optional, this is default, routes to a full VM
# arch: arm64 # this is the recommended LXD container - faster spin up but some limitations Not used as it seems very unstable.
os: linux # optional, this is default
Expand Down Expand Up @@ -51,7 +51,7 @@ branches:
before_install:
###############
# Hugo, Docsy and dependencies are installed via npm
- npm install # use npm rather than yarn - HUGO doesn't have that many dependencies
- 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 @@ -74,20 +74,23 @@ 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

# 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.
- set +o pipefail
# Additional info in bold white on green
- printf '\033[37;42;1m' >> $TRAVIS_BUILD_DIR/hugo.log
- echo "Any errors from HTMLTEST will be treated as warnings - the build will continue." >> $TRAVIS_BUILD_DIR/hugo.log
- printf '\033[0;22m' >> $TRAVIS_BUILD_DIR/hugo.log
- 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

- 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.
# - set +o pipefail
# # Additional info in bold white on green
# - printf '\033[37;42;1m' >> $TRAVIS_BUILD_DIR/hugo.log
# - echo "Any errors from HTMLTEST will be treated as warnings - the build will continue." >> $TRAVIS_BUILD_DIR/hugo.log
# - printf '\033[0;22m' >> $TRAVIS_BUILD_DIR/hugo.log
# - 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
#
before_script:
##############
- pyenv versions # list python versions supported by pyenv in case version in next command is removed
Expand Down