1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-27 00:51:18 +02:00

adjust CI to Go modules

relatively brought in line with lazydocker's config
This commit is contained in:
Dawid Dziurla
2019-08-26 17:22:01 +02:00
committed by Jesse Duffield
parent e0dd1cb29d
commit 1c704e11f2

View File

@ -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/lazygit working_directory: /go/src/github.com/jesseduffield/lazygit
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: |
@ -28,15 +30,15 @@ jobs:
name: Compile project on every platform name: Compile project on every platform
command: | command: |
go get github.com/mitchellh/gox 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: - save_cache:
key: pkg-cache-{{ checksum "Gopkg.lock" }}-v4 key: pkg-cache-{{ checksum "go.sum" }}-v5
paths: paths:
- ~/.cache/go-build - ~/.cache/go-build
release: release:
docker: docker:
- image: circleci/golang:1.10 - image: circleci/golang:1.12
working_directory: /go/src/github.com/jesseduffield/lazygit working_directory: /go/src/github.com/jesseduffield/lazygit
steps: steps:
- checkout - checkout