Skip to content

Commit

Permalink
adjust CI to Go modules
Browse files Browse the repository at this point in the history
relatively brought in line with lazydocker's config
  • Loading branch information
dawidd6 authored and jesseduffield committed Sep 1, 2019
1 parent e0dd1cb commit 1c704e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ jobs:
build:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: "on"
working_directory: /go/src/github.com/jesseduffield/lazygit
steps:
- checkout
Expand All @@ -15,7 +17,7 @@ jobs:
fi
- restore_cache:
keys:
- pkg-cache-{{ checksum "Gopkg.lock" }}-v4
- pkg-cache-{{ checksum "go.sum" }}-v5
- run:
name: Run tests
command: |
Expand All @@ -28,15 +30,15 @@ jobs:
name: Compile project on every platform
command: |
go get github.com/mitchellh/gox
gox -parallel 10 -os "linux freebsd netbsd windows" -osarch "darwin/i386 darwin/amd64"
gox -mod=vendor -parallel 10 -os "linux freebsd netbsd windows" -osarch "darwin/i386 darwin/amd64"
- save_cache:
key: pkg-cache-{{ checksum "Gopkg.lock" }}-v4
key: pkg-cache-{{ checksum "go.sum" }}-v5
paths:
- ~/.cache/go-build

release:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.12
working_directory: /go/src/github.com/jesseduffield/lazygit
steps:
- checkout
Expand Down

0 comments on commit 1c704e1

Please sign in to comment.