1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Google TestをCIで実行する

Last updated at Posted at 2023-02-03

前記事

CI で Google Test

CI で Google Test を実行するには, パッケージマネージャで Google Test がインストールできて,
インクルードパスにも自動で通してくれる Linux ディストリビューションを使うとラク.

それは Arch Linux だ.

たとえば CircleCI の場合は, 下記のように書けばいい.

.circleci/config.yml
version: 2.1
jobs:
  test:
    docker:
      - image: archlinux
    environment:
      GTEST_COLOR: yes # Google Test の出力が白黒にならないようにする
    steps:
      - checkout
      - run:
          command: pacman -Sy --noconfirm make clang gtest
      - run:
          command: make clean testall  # テスト実行

参考

GTEST_COLOR については下記を参照した

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?