Only post coverage data while running under Travis

Fixes #326 

See [list of environment variables](http://docs.travis-ci.com/user/ci-environment/#Environment-variables) set on Travis-CI.