forked from LaconicNetwork/kompose
Rename some make targests: test->test-container test-all->test
This commit is contained in:
parent
20b844d6e9
commit
0b1b7f3c35
@ -20,7 +20,7 @@ install:
|
|||||||
- true
|
- true
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test-all
|
- make test
|
||||||
# gover collects all .coverprofile files and saves it to one file gover.coverprofile
|
# gover collects all .coverprofile files and saves it to one file gover.coverprofile
|
||||||
- gover
|
- gover
|
||||||
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
|
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
|
||||||
|
|||||||
8
Makefile
8
Makefile
@ -82,8 +82,8 @@ check-vendor:
|
|||||||
./script/check-vendor.sh
|
./script/check-vendor.sh
|
||||||
|
|
||||||
# Run all tests
|
# Run all tests
|
||||||
.PHONY: test-all
|
.PHONY: test
|
||||||
test-all: check-vendor validate test-unit-cover install test-cmd
|
test: check-vendor validate test-unit-cover install test-cmd
|
||||||
|
|
||||||
# build docker image that is used for running all test localy
|
# build docker image that is used for running all test localy
|
||||||
.PHONY: test-image
|
.PHONY: test-image
|
||||||
@ -91,8 +91,8 @@ test-image:
|
|||||||
docker build -t $(TEST_IMAGE) -f script/test_in_container/Dockerfile script/test_in_container/
|
docker build -t $(TEST_IMAGE) -f script/test_in_container/Dockerfile script/test_in_container/
|
||||||
|
|
||||||
# run all test localy in docker image (image can be build by by build-test-image target)
|
# run all test localy in docker image (image can be build by by build-test-image target)
|
||||||
.PHONY: test
|
.PHONY: test-container
|
||||||
test:
|
test-container:
|
||||||
docker run -v `pwd`:/opt/tmp/kompose:ro -it $(TEST_IMAGE)
|
docker run -v `pwd`:/opt/tmp/kompose:ro -it $(TEST_IMAGE)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,4 +22,4 @@ set -e
|
|||||||
# We can be sure that this container won't modify any files on hosts disk.
|
# We can be sure that this container won't modify any files on hosts disk.
|
||||||
cp -r $KOMPOSE_TMP_SRC/ $(dirname $KOMPOSE_SRC)
|
cp -r $KOMPOSE_TMP_SRC/ $(dirname $KOMPOSE_SRC)
|
||||||
|
|
||||||
make test-all
|
make test
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user