Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2083 from 2opremio/go-mod
Browse files Browse the repository at this point in the history
Migrate dependency management to Go modules
  • Loading branch information
Alfonso Acosta authored May 24, 2019
2 parents 67f680c + a3d87f5 commit 4d7f78b
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 1,533 deletions.
23 changes: 14 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
version: 2
jobs:
build:
working_directory: ~/go/src/github.com/weaveworks/flux
working_directory: ~/flux
machine: true
environment:
GO_VERSION: 1.12.5
# We don't need a GOPATH but CircleCI defines it, so we override it
GOPATH: /home/circleci/go
PATH: /bin:/usr/bin:/usr/local/go/bin:/home/circleci/go/bin
steps:
Expand Down Expand Up @@ -33,13 +34,13 @@ jobs:
- cache-
- restore_cache:
keys:
- go-cache-{{ .Branch }}-{{ .Revision }}
- go-cache-{{ .Branch }}-
- go-cache-
- run:
name: Install Dep
command: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- run: dep ensure -vendor-only
- go-build-{{ .Branch }}-{{ .Revision }}
- go-build-{{ .Branch }}-
- go-build-
- restore_cache:
keys:
- go-mod-{{ checksum "go.mod" }}
- go-mod-
- run: make check-generated
- run: make test TEST_FLAGS="-race -tags integration -timeout 60s"
- run: make all
Expand All @@ -49,9 +50,13 @@ jobs:
paths:
- "cache"
- save_cache:
key: go-cache-{{ .Branch }}-{{ .Revision }}
key: go-build-{{ .Branch }}-{{ .Revision }}
paths:
- "~/.cache/go-build/"
- save_cache:
key: go-mod-{{ checksum "go.mod" }}
paths:
- "~/go/pkg/mod/"
- deploy:
name: Maybe push prerelease images
command: |
Expand Down
Loading

0 comments on commit 4d7f78b

Please sign in to comment.