ci: abstract glide into makefile
This commit is contained in:
@@ -24,11 +24,11 @@ jobs:
|
|||||||
- cache
|
- cache
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install glide
|
name: Install dependency management
|
||||||
command: curl https://glide.sh/get | sh
|
command: make install-dep-mgmt
|
||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: glide install
|
command: make vendor
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: cache-{{ arch }}-{{ .Branch }}-{{ checksum "glide.lock" }}
|
key: cache-{{ arch }}-{{ .Branch }}-{{ checksum "glide.lock" }}
|
||||||
@@ -43,11 +43,11 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install glide
|
name: Install dependency management
|
||||||
command: curl https://glide.sh/get | sh
|
command: make install-dep-mgmt
|
||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: glide install
|
command: make vendor
|
||||||
|
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
- run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin
|
- run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ test: vendor
|
|||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
dep ensure -vendor-only
|
glide install
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: vendor
|
release: vendor
|
||||||
curl -sL https://git.io/goreleaser | bash
|
curl -sL https://git.io/goreleaser | bash
|
||||||
|
|
||||||
.PHONY: install-dep
|
.PHONY: install-dep-mgmt
|
||||||
install-dep:
|
install-dep-mgmt:
|
||||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
curl https://glide.sh/get | sh
|
||||||
Reference in New Issue
Block a user