Skip to content
Snippets Groups Projects
Commit 41f50dde authored by baude's avatar baude
Browse files

add tests


Signed-off-by: default avatarbaude <bbaude@redhat.com>
parent d30e3825
No related branches found
No related tags found
Loading
......@@ -67,10 +67,18 @@ test_task:
depends_on:
- validate
gce_instance:
matrix:
image_name: ${FEDORA_CACHE_IMAGE_NAME}
image_name: ${PRIOR_UBUNTU_CACHE_IMAGE_NAME}
env:
PATH: "$PATH:/var/tmp/go/bin"
setup_script:
- OS_RELEASE_ID="$(source /etc/os-release; echo $ID)"
- if [[ "$OS_RELEASE_ID" == "fedora" ]]; then dnf install -y dnsmasq; fi
test_script:
- make
- ./bin/dnsname --help # STUB!
- make test
......@@ -46,7 +46,7 @@ endef
.install.ginkgo:
if [ ! -x "$(GOBIN)/ginkgo" ]; then \
$(call go-get,github.com/onsi/ginkgo); \
$(call go-get,github.com/onsi/ginkgo/ginkgo); \
fi
.install.gitvalidation:
......@@ -66,8 +66,12 @@ install:
clean:
rm -fr bin/
test: .install.ginkgo
$(GO) test -v ./...
.PHONY: \
binaries \
test \
gofmt \
lint \
validate
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment