diff --git a/.circleci/config.yml b/.circleci/config.yml index 379fe73..331168e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,10 @@ jobs: steps: - checkout - run: mkdir -p ./artifacts + - run: go get golang.org/x/tools/cmd/cover + - run: go get github.com/mattn/goveralls - run: ./test.sh + - run: $GOPATH/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN - run: ./build.sh local - run: cp ./bin/* ./artifacts - run: cp ./bin/vamp-darwin-amd64 ./artifacts/vamp-darwin-x86_64 diff --git a/.gitignore b/.gitignore index a1ac29d..6ad06fa 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ bin/ .idea/ temp/ vampkubistcli + +coverage.out diff --git a/README.md b/README.md index fdde525..2014a2d 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # Vamp Kubist command line client +[![Coverage Status](https://coveralls.io/repos/github/magneticio/vampkubistcli/badge.svg?branch=master)](https://coveralls.io/github/magneticio/vampkubistcli?branch=master) + Vamp Kubist Command Line Client is a command line client written in golang and allows a user interface to the Vamp Kubist API. It also supports common functions that are useful to regular users. Command Line client requires a running Vamp Kubist service to function. -Please check How to Setup Vamp Kubist on common documentation repository: https://github.com/magneticio/vamp2setup +Please check How to Setup Vamp Kubist on common documentation repository: https://github.com/magneticio/vampkubistdocs ## development if you have golang installed, it is recommended to git clone it to $GOPATH/src/github.com/magneticio/vampkubistcli @@ -66,7 +68,7 @@ https://github.com/magneticio/vamp/releases/latest This documentation is prepared for explaining the general usage of command line client. This Readme doesn't explain every path. -Tutorials will be shared soon. +Check docs repository for more: https://github.com/magneticio/vampkubistdocs Check the version of the client with: ```shell diff --git a/test.sh b/test.sh index 062c469..9b440bd 100755 --- a/test.sh +++ b/test.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -go test ./... +go test ./... -v -covermode=count -coverprofile=coverage.out