Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Coveralls, to keep your code decent.
Browse files Browse the repository at this point in the history
Signed-off-by: David Varvel <dvarvel@pivotallabs.com>
  • Loading branch information
onsi committed Apr 23, 2014
1 parent 499fa66 commit 4863950
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .drone.yml
Expand Up @@ -2,6 +2,7 @@
image: mischief/docker-golang

env:
- COVERALLS_TOKEN={{coveralls_token}}
- GOROOT=/usr/local/go
- GOPATH=/var/cache/drone
- PATH=$GOPATH/bin:$PATH
Expand Down
1 change: 1 addition & 0 deletions README.md
@@ -1,5 +1,6 @@
Runtime Metrics Server
======================
* [![Coverage Status](https://coveralls.io/repos/cloudfoundry-incubator/runtime-metrics-server/badge.png)](https://coveralls.io/r/cloudfoundry-incubator/runtime-metrics-server)]

This server reports metrics about the runtime data store to the Cloud Foundry
[collector](https://github.com/cloudfoundry/collector)
17 changes: 16 additions & 1 deletion scripts/test
Expand Up @@ -13,6 +13,21 @@ export PATH=$FIRST_GOPATH/bin:$PATH
go get -u github.com/coreos/etcd
go get -u github.com/apcera/gnatsd

go get github.com/dustin/goveralls

go install github.com/onsi/ginkgo/ginkgo

ginkgo -r -failOnPending -randomizeAllSpecs -race -nodes=4
ginkgo -r -cover -failOnPending -randomizeAllSpecs -race -nodes=4

# don't leak coveralls token
set +x

if [ -n "$COVERALLS_TOKEN" ]; then
profiles=$(find . -name '*.coverprofile' | grep -v fake | grep -v Godeps | grep -v file-server.coverprofile)

echo mode: set > all.coverprofile
cat $profiles | grep -v mode: >> all.coverprofile

goveralls -service drone.io -coverprofile=all.coverprofile $COVERALLS_TOKEN || \
echo "Coveralls failed. :("
fi

0 comments on commit 4863950

Please sign in to comment.