LoginSignup
1
0

More than 5 years have passed since last update.

CircleCIのmachine executor(docker-compose)で動くrspecのテストカバレッジをCode Climateに送る

Posted at

前提

  • CircleCI 上でdocker-compose runでテストを回している
  • simplecov の結果を Code Climate に送りたい

解決

after-build の時に Dockerfile で定義した WORKDIR の名前を prefix で渡してあげる必要がある

./cc-test-reporter after-build --prefix 'WORKDIR名' --coverage-input-type simplecov --exit-code $?

その他の設定はこちらの記事通りでいけました(ありがとうございます)
https://qiita.com/paranishian/items/478b92cedda84e812cad

ついでに

CircleCI の Artifacts からもカバレッジを参照したい場合、ググると色々な情報が載ってますが
2018年末の現状では、デフォ設定のまま下記を .circleci/config に記述すればよい。

- store_artifacts:                                                                                                                                                                         
  path: coverage/
1
0
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
0