My theme uses Hugo Pipes. To make sure that I notice when the theme breaks when using Hugo Basic, I decided to use Travis CI. This is my .travis.yml
file:
There are still a few things I would like to improve, e.g. use the latest releases of Go and Hugo instead of the master branch, but that’s not the subject of my question.
My problem is: the build works on local machines but fails on Travis CI.
Output from a working build (thanks to @alexandros who also tested this for me):
~/Desktop/tale-test$ git clone https://github.com/gohugoio/hugoBasicExample.git
Cloning into 'hugoBasicExample'...
remote: Enumerating objects: 172, done.
remote: Total 172 (delta 0), reused 0 (delta 0), pack-reused 172
Receiving objects: 100% (172/172), 3.15 MiB | 1.25 MiB/s, done.
Resolving deltas: 100% (45/45), done.
~/Desktop/tale-test$ cd hugoBasicExample
~/Desktop/tale-test/hugoBasicExample$ git submodule add -f https://github.com/EmielH/tale-hugo.git themes/tale
Cloning into '/tale-test/hugoBasicExample/themes/tale'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 260 (delta 32), reused 51 (delta 22), pack-reused 192
Receiving objects: 100% (260/260), 361.92 KiB | 726.00 KiB/s, done.
Resolving deltas: 100% (114/114), done.
~/Desktop/tale-test/hugoBasicExample$ hugo -t tale
| EN
+------------------+----+
Pages | 29
Paginator pages | 3
Non-page files | 0
Static files | 4
Processed images | 0
Aliases | 12
Sitemaps | 1
Cleaned | 0
Total in 212 ms
~/Desktop/tale-test/hugoBasicExample$ hugo version
Hugo Static Site Generator v0.52-DEV-5570A6E4:CHROMA-1B755A9 linux/amd64 BuildDate: 2018-11-12T19:16:06+0200
Output from a failing Travis CI build:
$ hugo version
Hugo Static Site Generator v0.52-DEV linux/amd64 BuildDate: unknown
$ git clone https://github.com/gohugoio/hugoBasicExample.git
Cloning into 'hugoBasicExample'...
remote: Enumerating objects: 172, done.
remote: Total 172 (delta 0), reused 0 (delta 0), pack-reused 172
Receiving objects: 100% (172/172), 3.15 MiB | 14.58 MiB/s, done.
Resolving deltas: 100% (45/45), done.
$ cd hugoBasicExample
$ git submodule add -f https://github.com/EmielH/tale-hugo.git themes/tale
Cloning into '/home/travis/gopath/src/github.com/EmielH/tale-hugo/hugoBasicExample/themes/tale'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 260 (delta 32), reused 51 (delta 22), pack-reused 192
Receiving objects: 100% (260/260), 361.92 KiB | 4.47 MiB/s, done.
Resolving deltas: 100% (114/114), done.
$ hugo -t tale
Building sites … ERROR 2018/11/14 17:59:16 error: failed to transform resource: TOCSS: failed to transform "scss/tale.scss" (text/x-scss): this feature is not available in your current Hugo version
Total in 33 ms
Error: Error building site: logged 1 error(s)
The command "hugo -t tale" exited with 255.
The output is from this build: https://travis-ci.com/EmielH/tale-hugo/builds/91407129
Does anyone have an idea? Thanks!