mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-21 11:25:41 +01:00
ci: abstract glide into makefile
This commit is contained in:
parent
c9b5a2c618
commit
682ceb9589
@ -24,11 +24,11 @@ jobs:
|
||||
- cache
|
||||
|
||||
- run:
|
||||
name: Install glide
|
||||
command: curl https://glide.sh/get | sh
|
||||
name: Install dependency management
|
||||
command: make install-dep-mgmt
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: glide install
|
||||
command: make vendor
|
||||
|
||||
- save_cache:
|
||||
key: cache-{{ arch }}-{{ .Branch }}-{{ checksum "glide.lock" }}
|
||||
@ -43,11 +43,11 @@ jobs:
|
||||
- checkout
|
||||
|
||||
- run:
|
||||
name: Install glide
|
||||
command: curl https://glide.sh/get | sh
|
||||
name: Install dependency management
|
||||
command: make install-dep-mgmt
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: glide install
|
||||
command: make vendor
|
||||
|
||||
- setup_remote_docker
|
||||
- run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin
|
||||
|
8
Makefile
8
Makefile
@ -2,12 +2,12 @@ test: vendor
|
||||
go test ./...
|
||||
|
||||
vendor:
|
||||
dep ensure -vendor-only
|
||||
glide install
|
||||
|
||||
.PHONY: release
|
||||
release: vendor
|
||||
curl -sL https://git.io/goreleaser | bash
|
||||
|
||||
.PHONY: install-dep
|
||||
install-dep:
|
||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
.PHONY: install-dep-mgmt
|
||||
install-dep-mgmt:
|
||||
curl https://glide.sh/get | sh
|
Loading…
Reference in New Issue
Block a user