diff --git a/.travis.yml b/.travis.yml index 66aaa9309ec..6eced68791d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,9 +39,11 @@ branches: cache: # Cache node_modules to avoid re-downloading on every build +# Cache resources/_gen to avoid recompiling SCSS/CSS on every build (Hugo/Docsy asset pipeline) # See https://docs.travis-ci.com/user/caching/ directories: - node_modules + - resources/_gen before_install: ############### diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 6a20bfd3891..3f71593cc57 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -30,6 +30,13 @@ disableKinds = ["taxonomy", "term"] quality = 75 anchor = "smart" +[build] + workers = 4 + writeStats = true + noChmod = true + useResourceCacheWhen = "fallback" + gc = true + # Language configuration [languages]