forked from LaconicNetwork/kompose
Add make rules for building and running test image
This commit is contained in:
parent
c8c2e8b7f6
commit
f68be75d60
10
Makefile
10
Makefile
@ -24,6 +24,8 @@ KOMPOSE_ENVS := \
|
||||
|
||||
BIND_DIR := bundles
|
||||
|
||||
TEST_IMAGE = "tomaskral/kompose-test:latest"
|
||||
|
||||
default: bin
|
||||
|
||||
all: validate
|
||||
@ -57,3 +59,11 @@ gofmt:
|
||||
|
||||
check-vendor:
|
||||
./script/make.sh check-vendor
|
||||
|
||||
# build docker image that is used for running travis test localy
|
||||
build-test-image:
|
||||
docker build -t $(TEST_IMAGE) -f script/tests_in_container/Dockerfile .
|
||||
|
||||
# run travis test localy using docker image (build by build-test-image target)
|
||||
test-docker:
|
||||
docker run -v `pwd`:/opt/tmp/kompose:ro -it $(TEST_IMAGE)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user