summaryrefslogtreecommitdiffstats
path: root/.travis.yml
AgeCommit message (Collapse)Author
2018-07-06Add Hugo Piper with SCSS support and much moreBjørn Erik Pedersen
Before this commit, you would have to use page bundles to do image processing etc. in Hugo. This commit adds * A new `/assets` top-level project or theme dir (configurable via `assetDir`) * A new template func, `resources.Get` which can be used to "get a resource" that can be further processed. This means that you can now do this in your templates (or shortcodes): ```bash {{ $sunset := (resources.Get "images/sunset.jpg").Fill "300x200" }} ``` This also adds a new `extended` build tag that enables powerful SCSS/SASS support with source maps. To compile this from source, you will also need a C compiler installed: ``` HUGO_BUILD_TAGS=extended mage install ``` Note that you can use output of the SCSS processing later in a non-SCSSS-enabled Hugo. The `SCSS` processor is a _Resource transformation step_ and it can be chained with the many others in a pipeline: ```bash {{ $css := resources.Get "styles.scss" | resources.ToCSS | resources.PostCSS | resources.Minify | resources.Fingerprint }} <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Digest }}" media="screen"> ``` The transformation funcs above have aliases, so it can be shortened to: ```bash {{ $css := resources.Get "styles.scss" | toCSS | postCSS | minify | fingerprint }} <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Digest }}" media="screen"> ``` A quick tip would be to avoid the fingerprinting part, and possibly also the not-superfast `postCSS` when you're doing development, as it allows Hugo to be smarter about the rebuilding. Documentation will follow, but have a look at the demo repo in https://github.com/bep/hugo-sass-test New functions to create `Resource` objects: * `resources.Get` (see above) * `resources.FromString`: Create a Resource from a string. New `Resource` transformation funcs: * `resources.ToCSS`: Compile `SCSS` or `SASS` into `CSS`. * `resources.PostCSS`: Process your CSS with PostCSS. Config file support (project or theme or passed as an option). * `resources.Minify`: Currently supports `css`, `js`, `json`, `html`, `svg`, `xml`. * `resources.Fingerprint`: Creates a fingerprinted version of the given Resource with Subresource Integrity.. * `resources.Concat`: Concatenates a list of Resource objects. Think of this as a poor man's bundler. * `resources.ExecuteAsTemplate`: Parses and executes the given Resource and data context (e.g. .Site) as a Go template. Fixes #4381 Fixes #4903 Fixes #4858
2018-06-14Update to Go 1.9.7 and Go 1.10.3Anthony Fok
for Travis CI, Docker and Snap
2018-04-09Bump Go versionsBjørn Erik Pedersen
Fixes #4545
2018-04-07travis: Disable shallow clone to fix TestPageWithLastmodFromGitInfoAnthony Fok
Fixes #4584
2018-04-02travis: Clean up and increase verbosityAnthony Fok
2018-04-02travis: Run "gem install" without sudoAnthony Fok
Running "sudo gem install" was causing random errors like the following: ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /home/travis/.rvm/gems/ruby-2.4.1/cache/asciidoctor-1.5.6.2.gem Perhaps sudo is no longer necessary, even on OS X? :-)
2018-03-26travis: Move to Ubuntu Trusty imageAnthony Fok
2018-02-17Second try: Update to Go 1.10 (!)Bjørn Erik Pedersen
2018-02-16Revert "Update to Go 1.10 (!)"Bjørn Erik Pedersen
This reverts commit ff10c15a93632043f7a7f6551a30487c9ef58c50.
2018-02-16Update to Go 1.10 (!)Bjørn Erik Pedersen
See https://blog.golang.org/go1.10
2018-02-07Bump Travis/Snapcraft to Go 1.9.4Bjørn Erik Pedersen
2018-01-26travis: Re-enable macOS buildsBjørn Erik Pedersen
2018-01-26Update to Go 1.9.3Bjørn Erik Pedersen
Fixes #4328
2018-01-23travis: Disable macOS builds for nowBjørn Erik Pedersen
Travis have not been able to build those the last week or so.
2017-11-08Update Travis and snapcraft to Go 1.9.2Bjørn Erik Pedersen
See #4064
2017-10-05Bump Go versions in Travis configBjørn Erik Pedersen
2017-10-05Replace make with mageBjørn Erik Pedersen
Fixes #3937
2017-08-25Update Travis build to Go 1.9!Bjørn Erik Pedersen
Just released: https://blog.golang.org/go1.9
2017-08-11travis: Pull docutils out into requirements.txtBjørn Erik Pedersen
2017-08-11travis: Fix docutils setupBjørn Erik Pedersen
2017-08-11travis: Try to fix docutils setup on LinuxBjørn Erik Pedersen
2017-06-26Revert "Remove docs building from CI builds"Bjørn Erik Pedersen
Now /docs is a Git subtree, so now this should just work. This reverts commit 214dbdfb6f016d21415bc1ed511a37a084238878.
2017-06-14Remove docs building from CI buildsBjørn Erik Pedersen
We could probably get it working, but we have plenty of site tests now.
2017-05-26travis: Update Go versionsBjørn Erik Pedersen
2017-04-07travis: Go 1.8.1Bjørn Erik Pedersen
2017-02-17travis: Bump to Go 1.7.5 and 1.8 (Yay!)Bjørn Erik Pedersen
2017-01-11Clean up Makefile (#2924)Cameron Moore
Add missing deprecated targets. Remove `test` from `check` target since we already have `test-race`. Fixes #2901
2016-12-29travis: Add GOARCH 386 testBjørn Erik Pedersen
Closes #2847
2016-12-23Update Travis go versionsCameron Moore
2016-10-19Bump Travis to Go 1.7.3Bjørn Erik Pedersen
2016-10-06travis: Reintroduce asciidoctor to buildBjørn Erik Pedersen
Fixes #2524
2016-10-05travis: Remove asciidoctor from buildBjørn Erik Pedersen
It fails. Will have to investigate.
2016-10-05travis: Fix asciidoctor buildBjørn Erik Pedersen
2016-10-05travis: Lock asciidoctor to 1.5.4Bjørn Erik Pedersen
1.5.5 (the newly released) seems to break.
2016-09-19Add vendoring with govendorCameron Moore
2016-09-08Bump Travis to Go 1.7.1Bjørn Erik Pedersen
2016-08-16Simplify Travis buildCameron Moore
2016-08-16Bump Travis to Go 1.7Bjørn Erik Pedersen
2016-07-30Disable Go 1.5.4 in TravisBjørn Erik Pedersen
There is one failing test there now, a odd filesystem issue. Since Go 1.7 is only "days" away, I'm not spending time debugging this.
2016-07-18Bump Travis to Go 1.6.3Bjørn Erik Pedersen
2016-07-04Add Docutils to TravisBjørn Erik Pedersen
Fixes #2255 Closes #2254
2016-07-04Add Asciidoctor to TravisBjørn Erik Pedersen
Fixes #2250
2016-06-29Update Travis config to Go 1.6.2Anthony Fok
2016-04-13Update Travis config to Go 1.5.4 and 1.6.1Bjørn Erik Pedersen
2016-04-07Build Hugo in Travis with race detection enabledBjørn Erik Pedersen
2016-03-22Do make check in TravisBjørn Erik Pedersen
2016-02-17Go 1.6 is out!Bjørn Erik Pedersen
2016-02-05Add --renderToMemory as an additional Travis build stepBjørn Erik Pedersen
2016-01-13Update Travis config to Go 1.5.3Bjørn Erik Pedersen
2015-12-04Update Travis config to Go 1.5.2Bjørn Erik Pedersen