diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-10-30 09:29:38 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-10-30 11:46:40 +0100 |
commit | 89bd025ebfd2c559039826641702941fc35a7fdb (patch) | |
tree | 96b457737db99ffd1a27d502798257f0e7d79db6 /testscripts/commands | |
parent | 62567d38205a61134a6822d37a534520772419f1 (diff) | |
download | hugo-89bd025ebfd2c559039826641702941fc35a7fdb.tar.gz hugo-89bd025ebfd2c559039826641702941fc35a7fdb.zip |
Build without the deploy feature by default
Build tags setup changed to:
* !nodeploy => withdeploy
* nodeploy => !withdeploy
Also move the deploy feature out into its own release archives.
See #12994 for the primary motivation for this change. But this also greatly reduces the number of dependencies in Hugo when you don't need this feature and cuts the binary size greatly.
Fixes #12994
Diffstat (limited to 'testscripts/commands')
-rw-r--r-- | testscripts/commands/deploy.txt | 24 | ||||
-rw-r--r-- | testscripts/commands/gen.txt | 5 |
2 files changed, 0 insertions, 29 deletions
diff --git a/testscripts/commands/deploy.txt b/testscripts/commands/deploy.txt deleted file mode 100644 index 2586f8b8f..000000000 --- a/testscripts/commands/deploy.txt +++ /dev/null @@ -1,24 +0,0 @@ -# Test the deploy command. - -hugo deploy -h -stdout 'Deploy your site to a cloud provider' -mkdir mybucket -hugo deploy --target mydeployment --invalidateCDN=false -grep 'hello' mybucket/index.html -replace public/index.html 'hello' 'changed' -hugo deploy --target mydeployment --dryRun -stdout 'Would upload: index.html' -stdout 'Would invalidate CloudFront CDN with ID foobar' --- hugo.toml -- -disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] -baseURL = "https://example.org/" -[deployment] -[[deployment.targets]] -name = "myfirst" -url="gs://asdfasdf" -[[deployment.targets]] -name = "mydeployment" -url="file://./mybucket" -cloudFrontDistributionID = "foobar" --- public/index.html -- -<html><body>hello</body></html> diff --git a/testscripts/commands/gen.txt b/testscripts/commands/gen.txt index b8fe9d2dc..092b4e129 100644 --- a/testscripts/commands/gen.txt +++ b/testscripts/commands/gen.txt @@ -1,17 +1,12 @@ # Test the gen commands. -# Note that adding new commands will require updating the NUM_COMMANDS value. -env NUM_COMMANDS=44 hugo gen -h stdout 'Generate documentation for your project using Hugo''s documentation engine, including syntax highlighting for various programming languages\.' - hugo gen doc --dir clidocs -checkfilecount $NUM_COMMANDS clidocs hugo gen man -h stdout 'up-to-date man pages' hugo gen man --dir manpages -checkfilecount $NUM_COMMANDS manpages hugo gen chromastyles -h stdout 'Generate CSS stylesheet for the Chroma code highlighter' |