Created
April 8, 2018 13:57
-
-
Save srz-zumix/cd3c04280b09de8b24136720bfd97e90 to your computer and use it in GitHub Desktop.
cirrus ci yml sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # コンテナの指定はタスクごとに指定可能、グローバルデフォルトは以下のように書く | |
| #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