only run goveralls if secure variables are available
diff --git a/.travis.yml b/.travis.yml
index e2f00f3..eb47fb6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,7 +14,7 @@
   - go get code.google.com/p/go.tools/cmd/cover
   - go get github.com/onsi/ginkgo/ginkgo
   - go get github.com/modocache/gover
-  - go get github.com/mattn/goveralls
+  - if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then go get github.com/mattn/goveralls; fi
 
 script:
   # go-flags
@@ -28,7 +28,7 @@
   # code coverage
   - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/ginkgo -r -cover
   - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/gover
-  - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN
+  - if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
 
 env:
   # coveralls.io