Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Run the CI target as part of the regular build.
  • Loading branch information
kmova authored Feb 13, 2017
1 parent 3af63a7 commit 9ff6dd5
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,29 @@ _customize_longhorn:
_build_longhorn:
cd $(GOPATH)/src/github.com/openebs/longhorn && make

_run_ci:
@echo ""
@echo "INFO:\t..... run ci over jiva image"
@echo ""
#IMAGE := $(shell sudo docker images | grep jiva | awk '{print $1":"$2}')
#shell ci/start_init_test.sh IMAGE

_push_image:
cd $(GOPATH)/src/github.com/openebs/longhorn && ./scripts/push



#
# Will build the go based binaries
# The binaries will be placed at $GOPATH/bin/
#
build: deps _install_trash _fetch_longhorn _customize_longhorn _build_longhorn _push_image
@echo ""
@echo "INFO:\t..... run ci over jiva image"
@echo ""

build: deps _install_trash _fetch_longhorn _customize_longhorn _build_longhorn _run_ci _push_image


#
# This is done to avoid conflict with a file of same name as the targets
# mentioned in this makefile.
#
.PHONY: help deps build
.PHONY: help deps build
.DEFAULT_GOAL := build

_test_longhorn:
IMAGE := $(shell sudo docker images | grep jiva | awk '{print $1":"$2}')
shell ci/start_init_test.sh IMAGE

0 comments on commit 9ff6dd5

Please sign in to comment.