Skip to content

Commit

Permalink
Build and attatch the test binary to a release (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: Omer Yahud <[email protected]>
  • Loading branch information
omeryahud authored Jan 21, 2021
1 parent 2958a1f commit 76ce74b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,22 @@ all: manager
unittest: generate fmt vet manifests
go test -v -coverprofile cover.out ./api/... ./controllers/... ./internal/... ./hack/...

build-util-container:
./hack/build-in-container.sh
# TODO - build tests inside a container
#build-util-container:
# ./hack/build-in-container.sh

build-functests:
./hack/in-container.sh ./hack/build-functests.sh
#build-functests:
# ./hack/in-container.sh ./hack/build-functests.sh

run-functest:
./hack/run-functest.sh
#run-functest:
# ./hack/run-functest.sh

# TODO - skipping build container for functests until OCP CI is ready
#functest: generate fmt vet manifests build-functests run-functest

build-functests:
go test -c ./tests

functest: generate fmt vet manifests
go test -v -coverprofile cover.out -timeout 0 ./tests/...

Expand Down Expand Up @@ -165,4 +169,5 @@ bundle-build:
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .

.PHONY: release
release: container-build container-push bundle
release: container-build container-push bundle build-functests
cp ./tests.test _out/tests.test

0 comments on commit 76ce74b

Please sign in to comment.