LoginSignup
1
1

More than 5 years have passed since last update.

CIでDockerイメージをつくった上でテストしている場合のCoverallsの設定

Posted at

-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

とした。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1