<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CircleCI :: Today 'tunepolo' Leaned</title><link>https://tunepolo.github.io/til/circleci/index.html</link><description/><generator>Hugo</generator><language>ja-jp</language><atom:link href="https://tunepolo.github.io/til/circleci/index.xml" rel="self" type="application/rss+xml"/><item><title>CircleCIの設定ファイルをローカルで検証する</title><link>https://tunepolo.github.io/til/circleci/local_config_validate/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tunepolo.github.io/til/circleci/local_config_validate/index.html</guid><description>$ circleci config validate Config file at .circleci/config.yml is valid.</description></item><item><title>Contextsを使う</title><link>https://tunepolo.github.io/til/circleci/use_contexts/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tunepolo.github.io/til/circleci/use_contexts/index.html</guid><description>Contextsとは環境変数を保護し、プロジェクト間で共有するためのメカニズムである。 Organizationの設定ページで設定できる。&#10;使い方は下記の手順を踏む。</description></item><item><title>globstarを使う</title><link>https://tunepolo.github.io/til/circleci/use_globstar/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tunepolo.github.io/til/circleci/use_globstar/index.html</guid><description>globstarとはzshで使える **/*.rbのような0以上のディレクトリに展開される表記を指す。&#10;CircleCIではbashが使われるが、bashでは明示的にshopt -s globstarが設定されていない限り、デフォルトでは ** は * 相当に展開される。</description></item><item><title>設定ファイルのOrbやコマンドを展開して確認する</title><link>https://tunepolo.github.io/til/circleci/convert_20_to_21/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tunepolo.github.io/til/circleci/convert_20_to_21/index.html</guid><description>Orbやコマンドを使うと、実際に実行される設定が読み取りにくくなる。 circleci config processを使うと、それらを展開した結果を確認できる。&#10;$ circleci config process .circleci/config.yml Orbの解決結果がコメントで示され、展開後の設定が出力される。</description></item><item><title>設定ファイルを分割する</title><link>https://tunepolo.github.io/til/circleci/separate_config/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tunepolo.github.io/til/circleci/separate_config/index.html</guid><description>circleci config packコマンドで結合できる。 ファイルの配置は結合後のYAMLのキー・設定値と対応させる必要がある。&#10;$ tree . └── your-orb-source ├── @orb.yml ├── commands │ └── foo.yml └── jobs └── bar.yml 上記のファイル構造は下記のように結合される。</description></item><item><title>連続してトリガーされたビルドを自動キャンセルする</title><link>https://tunepolo.github.io/til/circleci/auto-cancel_redundant_builds/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tunepolo.github.io/til/circleci/auto-cancel_redundant_builds/index.html</guid><description>同じブランチに対してトリガーされ、実行待ちとなっているビルドを検知して自動的にキャンセルできる。&#10;プロジェクト設定のAdvancedにあるAuto-cancel redundant workflowsを有効化する。</description></item></channel></rss>