Skip to content

Travis build speed optimization#11330

Draft
OlufunkeMoronfolu wants to merge 20 commits into
developmentfrom
olu-travis-build-speed-fix
Draft

Travis build speed optimization#11330
OlufunkeMoronfolu wants to merge 20 commits into
developmentfrom
olu-travis-build-speed-fix

testing cache?

7503cc2
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Jun 16, 2026 in 13m 29s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #11330 scss travis savings test.
Any changes that have been made to the development branch before the build ran are also included.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language Node.js
Operating System Linux (Jammy)
Node.js Version 24.15
Build Configuration
{
  "language": "node_js",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "node_js": [
    "24.15"
  ],
  "arch": [
    "amd64"
  ],
  "git": {
    "depth": 1000,
    "quiet": true,
    "submodules": false
  },
  "env": [
    "global={:HUGO_DEBUG_LOGS=>\"false\"}={:RUN_HTMLTEST_ON_PR=>\"false\"}"
  ],
  "branches": {
    "only": [
      "production",
      "development"
    ]
  },
  "cache": {
    "directories": [
      "$HOME/.npm",
      "node_modules",
      "$HOME/.cache/hugo_cache_v2",
      "resources/_gen"
    ]
  },
  "before_install": [
    "travis_retry npm ci --prefer-offline --no-audit --fund=false"
  ],
  "install": [
    "mkdir public",
    "if [ \"$HUGO_DEBUG_LOGS\" = \"true\" ]; then ./node_modules/.bin/hugo config --environment $TRAVIS_BRANCH --logLevel debug; else ./node_modules/.bin/hugo config --environment $TRAVIS_BRANCH; fi",
    "printf '\\033[37;42;1m' > $TRAVIS_BUILD_DIR/hugo.log",
    "echo \"HUGO was run for environment $TRAVIS_BRANCH\" >> $TRAVIS_BUILD_DIR/hugo.log",
    "printf '\\033[0;22m' >> $TRAVIS_BUILD_DIR/hugo.log",
    "set -o pipefail",
    "if [ \"$HUGO_DEBUG_LOGS\" = \"true\" ]; then HUGO_ENABLEGITINFO=false HUGO_CACHEDIR=$HOME/.cache/hugo_cache_v2 ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH --templateMetrics --logLevel debug 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log; else HUGO_ENABLEGITINFO=false HUGO_CACHEDIR=$HOME/.cache/hugo_cache_v2 ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log; fi",
    "set +o pipefail",
    "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",
    "if [ \"$TRAVIS_PULL_REQUEST\" != \"false\" ] && [ \"$RUN_HTMLTEST_ON_PR\" != \"true\" ]; then echo \"Skipping htmltest for PR build (set RUN_HTMLTEST_ON_PR=true to enable).\" | tee -a $TRAVIS_BUILD_DIR/hugo.log; else ./htmltest/htmltest 2>&1 | sed \"s/\\o033\\[91/\\o033\\[31/g; s/\\o033\\[92/\\o033\\[32/g\" | tee -a $TRAVIS_BUILD_DIR/hugo.log; fi"
  ],
  "before_script": [
    "pyenv versions",
    "pyenv global 3.8",
    "python -V"
  ],
  "script": [
    "printf '\\n\\n%s\\n\\n' \"$(<$TRAVIS_BUILD_DIR/hugo.log)\""
  ],
  "before_deploy": [
    "curl \"https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip\" -o \"awscliv2.zip\"",
    "unzip -q awscliv2.zip",
    "sudo ./aws/install",
    "aws --version",
    "chmod +x $TRAVIS_BUILD_DIR/_scripts/deploy.sh",
    "python --version",
    "pip install --upgrade 'algoliasearch>=2.0,<3.0'"
  ],
  "deploy": [
    {
      "provider": "script",
      "edge": true,
      "script": "$TRAVIS_BUILD_DIR/_scripts/deploy.sh",
      "on": {
        "branch": [
          "production",
          "development"
        ]
      }
    }
  ],
  "after_deploy": [
],
"after_script": [
]
}