Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
Created April 8, 2018 13:57
Show Gist options
  • Select an option

  • Save srz-zumix/cd3c04280b09de8b24136720bfd97e90 to your computer and use it in GitHub Desktop.

Select an option

Save srz-zumix/cd3c04280b09de8b24136720bfd97e90 to your computer and use it in GitHub Desktop.
cirrus ci yml sample
# コンテナの指定はタスクごとに指定可能、グローバルデフォルトは以下のように書く
#container:
# 指定できる imgae はこちらを参照 (https://cirrus-ci.org/guide/supported-computing-services/#community-cluster)
# k8s を覚えたら追記
# image: node:latest
# cpu: 4
# memory: 12
# task(他の CI サービスでいうとジョブとか)
# task の前に好きな名前をつけられる、コミットステータスに表示される名称がこれになる
cirrus_gcc_test_task:
# コンテナ指定
container:
image: gcc:latest
# マトリックスも組める
# (コンテナのマトリックスも組める https://cirrus-ci.org/guide/writing-tasks/#matrix-modification)
env:
matrix:
STDFLAG: -std=c++14
STDFLAG: -std=c++17
#STDFLAG: -std=c++2a
# ***script に実行する処理を書く (https://cirrus-ci.org/guide/writing-tasks/#script-instruction)
# script の前には好きな名前をつけられる
test_script: cd test && make -j4 showcxxversion default && make test
#cirrus_use_gtest_task:
# env:
# USE_GTEST: 1
# container:
# image: srzzumix/googletest:latest
# test_script: cd test && make -j4 showcxxversion default && make test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment