diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2019-08-26 17:22:01 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-09-01 21:24:03 +1000 |
commit | 1c704e11f22371d70ad88dbf8934d3fe742c305c (patch) | |
tree | 0b283cb4c7646f5458efd5cba408dcf9678b368b /.circleci/config.yml | |
parent | e0dd1cb29d6d70829622ca0125028e98fa440f4a (diff) |
adjust CI to Go modules
relatively brought in line with lazydocker's config
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f6731055..49f8db644 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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: | @@ -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 |