毎回Webで確認するの面倒だなぁと思っていたら、こういうのがあった。
導入
$ gem install circle-cli
$ circle token <your token>
tokenは左メニューのAccountSettingより API Tokens を選択して取得できる。
使い方
現在のブランチのビルドを起動する。
$ circle build
まだAdd Project とかしていないプロジェクトだと何も置きずに止まるだけっぽい。
Add Project しているプロジェクトだとgithubから最新のBranch Tipを取ってくる。
Github 連携かけている場合ほとんど必要ない?
$ circle status
ビルドの進行状況を確認できる。
但し表示されるのは、タイトルのみの省略フォーマット
udpate
Build status Failed
Started at Oct 11, 3:33 AM
Finished at Oct 11, 3:33 AM
Steps:
Starting the build
Start container
Enable SSH
Restore source cache
Checkout using deploy key: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Configure the build
Exporting env vars from circle.yml
set php version to 7.0.4
Restore cache
Exporting NODE_ENV
Exporting PATH
npm install
composer install
php artisan migrate --force
Save cache
make test
Collect test metadata
Collect artifacts
Disable SSH
詳細は、Webページから見るのが良さそう。
現在進行中のビルドはcancel
コマンドでキャンセル出来る。
$ circle cancle
最後に以下のコマンドでCircle CIのWebページを開くことが出来る。
$ circle open
なんだかんだ、これが一番便利そう。