release: Fix CircleCI script
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 28 Aug 2018 16:36:30 +0000 (18:36 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 28 Aug 2018 20:17:35 +0000 (22:17 +0200)
.circleci/config.yml

index 941ffd03f73a5a1a03f528868ad71d02ee869f9d..8124bee1ffe470769ba72ed0140a34c4e0948614 100644 (file)
@@ -1,8 +1,11 @@
 defaults: &defaults
   working_directory: /go/src/github.com/gohugoio
   docker:
-      - image: bepsays/ci-goreleaser:1.11-1
-    
+      - image: bepsays/ci-goreleaser:1.11-2
+  environment:
+    GO111MODULE: "on"
+    CGO_ENABLED: "0"
+
 version: 2
 jobs:
   build:
@@ -12,10 +15,11 @@ jobs:
           path: hugo
       - run:
             command: |
-                env GO111MODULE=on go get github.com/magefile/mage
                 git clone git@github.com:gohugoio/hugoDocs.git
                 cd hugo
-                mage check
+                go mod download
+                sleep 5
+                go test ./...
       - persist_to_workspace:
           root: .
           paths: .