Fix broken Travis config
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 6 Sep 2018 07:34:09 +0000 (09:34 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 6 Sep 2018 11:42:41 +0000 (13:42 +0200)
See https://github.com/magefile/mage/issues/79

.travis.yml
go.sum

index 7c2948f49d03698b024875bc8f4d0d16ac46ae1f..c0aaa27ae2bb8d05c79b61f48647e6f49a3dc921 100644 (file)
@@ -16,13 +16,17 @@ matrix:
     - go: tip
   fast_finish: true
 install:
-  - env GO111MODULE=on go get github.com/magefile/mage
- script:
-  - mage -v test
-  - mage -v check
-  - mage -v hugo
-  - ./hugo -s docs/
-  - ./hugo --renderToMemory -s docs/
+  - mkdir -p $HOME/src
+  - mv $HOME/gopath/src/github.com/gohugoio/hugo $HOME/src
+  - export TRAVIS_BUILD_DIR=$HOME/src/hugo
+  - cd $HOME/src/hugo
+  - go get github.com/magefile/mage
+script:
+- mage -v test
+- mage -v check
+- mage -v hugo
+- ./hugo -s docs/
+- ./hugo --renderToMemory -s docs/
 before_install:
   - gem install asciidoctor
   - type asciidoctor
diff --git a/go.sum b/go.sum
index b10832e120cfd56067df0fc385de080c47e1a1d6..74e019678ffb3a5d86d75e1676818d82e7bd28bd 100644 (file)
--- a/go.sum
+++ b/go.sum
@@ -56,7 +56,7 @@ github.com/jdkato/prose v1.1.0 h1:LpvmDGwbKGTgdCH3a8VJL56sr7p/wOFPw/R4lM4PfFg=
 github.com/jdkato/prose v1.1.0/go.mod h1:jkF0lkxaX5PFSlk9l4Gh9Y+T57TqUZziWT7uZbW5ADg=
 github.com/kyokomi/emoji v1.5.1 h1:qp9dub1mW7C4MlvoRENH6EAENb9skEFOvIEbp1Waj38=
 github.com/kyokomi/emoji v1.5.1/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA=
-github.com/magefile/mage v1.2.4 h1:2QnmtjngYyEG7hFmpnWXcqNg6dYRerYkrltrIcYu1o0=
+github.com/magefile/mage v1.2.4 h1:Olsqw6CIOK4dYqrCAZ2tEiwdg4jx0g1wltVvuOuFhPE=
 github.com/magefile/mage v1.2.4/go.mod h1:IUDi13rsHje59lecXokTfGX0QIzO45uVPlXnJYsXepA=
 github.com/magiconair/properties v1.8.0 h1:LLgXmsheXeRoUOBOjtwPQCWIYqM/LU1ayDtDePerRcY=
 github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=