2
2

More than 5 years have passed since last update.

circle ci のCLIツールを試す

Last updated at Posted at 2016-10-11

毎回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 

なんだかんだ、これが一番便利そう。

2
2
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
2
2