-e CI=true
をつける
参考: https://github.com/lemurheavy/coveralls-ruby/blob/v0.7.9/lib/coveralls.rb#L94
もっと詳しく
CircleCIでdocker build
して作成したimageをつかって
docker run -it eiel/hogehoge rake spec
みたいにテストしている。
しかし、
[Coveralls] Outside the Travis environment, not sending data.
と、でていて実行結果を送信できてない。
環境変数CIが定義されていれば、良いようだったので
docker run -it -e CI=true eiel/hogehoge rake spec
とした。