4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CircleCI画面上でビルドしたファイルを閲覧する方法

Posted at

phpunitのカバレッジHTMLとか簡単に閲覧するためにはCircleCIのArtifactsという機能を使います。

公式ページに書いてあるのですがphpunitの場合は

.circleci/config.yml
version: 2
jobs:
  build:
------- 省略 ---------
    steps:
      - run:
          name: run phpunit with measuring coverage
          command: ./vendor/bin/phpunit --coverage-html /tmp/coverage

      - store_artifacts:
          path: /tmp/coverage
          destination: coverage

というようにstore_artifactsというステップが必要になります。
これを設定するとカバレッジのHTMLがCircleCI上のArtifactsタブから閲覧することができるようになります。

ググると
$CIRCLE_ARTIFACTS
って環境変数のパスに置けばいいよとか書いてありますが今は使えません。

4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?