mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
update circle ci for go modules
This commit is contained in:
parent
22ff831cfe
commit
0f3a035eda
1 changed files with 4 additions and 2 deletions
|
|
@ -3,6 +3,8 @@ jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12
|
- image: circleci/golang:1.12
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
working_directory: /go/src/github.com/jesseduffield/lazydocker
|
working_directory: /go/src/github.com/jesseduffield/lazydocker
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
@ -15,7 +17,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- pkg-cache-{{ checksum "Gopkg.lock" }}-v4
|
- pkg-cache-{{ checksum "go.sum" }}-v5
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: |
|
command: |
|
||||||
|
|
@ -30,7 +32,7 @@ jobs:
|
||||||
go get github.com/mitchellh/gox
|
go get github.com/mitchellh/gox
|
||||||
gox -mod=vendor -parallel 10 -os "linux freebsd" -osarch "darwin/i386 darwin/amd64"
|
gox -mod=vendor -parallel 10 -os "linux freebsd" -osarch "darwin/i386 darwin/amd64"
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: pkg-cache-{{ checksum "Gopkg.lock" }}-v4
|
key: pkg-cache-{{ checksum "go.sum" }}-v5
|
||||||
paths:
|
paths:
|
||||||
- ~/.cache/go-build
|
- ~/.cache/go-build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue