mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-29 04:31:44 +00:00
Merge pull request #2 from tendermint/make_and_circle
Makefile and circle.yml
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
.PHONEY: all test install get_vendor_deps ensure_tools
|
||||||
|
|
||||||
|
GOTOOLS = \
|
||||||
|
github.com/Masterminds/glide
|
||||||
|
REPO:=github.com/tendermint/tmlibs
|
||||||
|
|
||||||
|
all: install test
|
||||||
|
|
||||||
|
test:
|
||||||
|
go test `glide novendor`
|
||||||
|
|
||||||
|
get_vendor_deps: ensure_tools
|
||||||
|
@rm -rf vendor/
|
||||||
|
@echo "--> Running glide install"
|
||||||
|
@glide install
|
||||||
|
|
||||||
|
ensure_tools:
|
||||||
|
go get $(GOTOOLS)
|
||||||
|
|
||||||
|
|
21
circle.yml
Normal file
21
circle.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
machine:
|
||||||
|
environment:
|
||||||
|
GOPATH: /home/ubuntu/.go_workspace
|
||||||
|
PROJECT_PARENT_PATH: "$GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME"
|
||||||
|
PROJECT_PATH: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
||||||
|
GO15VENDOREXPERIMENT: 1
|
||||||
|
hosts:
|
||||||
|
circlehost: 127.0.0.1
|
||||||
|
localhost: 127.0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
override:
|
||||||
|
- mkdir -p "$PROJECT_PARENT_PATH"
|
||||||
|
- ln -sf "$HOME/$CIRCLE_PROJECT_REPONAME/" "$PROJECT_PATH"
|
||||||
|
post:
|
||||||
|
- go version
|
||||||
|
|
||||||
|
test:
|
||||||
|
override:
|
||||||
|
- "go version"
|
||||||
|
- "cd $PROJECT_PATH && make get_vendor_deps && make test"
|
Reference in New Issue
Block a user