diff options
author | Mikey Lombardi (He/Him) <michael.t.lombardi@gmail.com> | 2022-11-15 19:19:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 19:19:33 +0300 |
commit | 474444fa9f0decb2d7734828c7f9d629535dcb94 (patch) | |
tree | df57de5bff88e9c06e7914b94311ec2f6f0180c5 /test | |
parent | ada30c21f5148715719bf6d6b94f3e5dce50b19d (diff) |
(GH-198) Add `extended` option to hugo feature (#240)
Prior to this change, the hugo feature only supported specifying the
version of Hugo to install. Hugo is available in two builds: standard,
which the feature already installs, and extended, which includes
functionality for post-processing CSS/SCSS/SASS and JavaScript.
This change adds a new `extended` option to the hugo feature, allowing
users to specify that they require the extended build of Hugo. It
defaults to `false` and installs the standard build of Hugo.
- Resolves #198
Diffstat (limited to 'test')
-rw-r--r-- | test/hugo/install_hugo_extended.sh | 12 | ||||
-rw-r--r-- | test/hugo/scenarios.json | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/hugo/install_hugo_extended.sh b/test/hugo/install_hugo_extended.sh new file mode 100644 index 0000000..4771d84 --- /dev/null +++ b/test/hugo/install_hugo_extended.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Ensure extended version is installed +check "extended_installed" bash -c "hugo version | grep extended" + +# Report result +reportResults diff --git a/test/hugo/scenarios.json b/test/hugo/scenarios.json new file mode 100644 index 0000000..4c093df --- /dev/null +++ b/test/hugo/scenarios.json @@ -0,0 +1,11 @@ +{ + "install_hugo_extended": { + "image": "mcr.microsoft.com/devcontainers/base", + "features": { + "hugo": { + "version": "latest", + "extended": true + } + } + } +}
\ No newline at end of file |