Download - BITRISEを使っています
![Page 1: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/1.jpg)
BITRISE を使っています
2016-05-25 @kurikazuat potatotips #29
![Page 2: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/2.jpg)
自己紹介
• @kurikazu• ディップ株式会社• スマホアプリ担当• 企画チームとの橋渡し• 進捗どうですかと聞いて
回る人• trac, laravel とか
![Page 3: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/3.jpg)
BITRISE を使っています今日の話
![Page 4: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/4.jpg)
BITRISE とは
![Page 5: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/5.jpg)
BITRISE とは
• ネイティブアプリ向け CI サービス• iOS, Android, Xamarin に対応• GitHub 以外にも対応
( Bitbucket, 任意の git リポジトリ)• GUI でいろいろ設定できる• 無料枠あり。有料は 50$/ 月~
無料はビルド時間( 10 分以内)やビルド回数(月 200 回以内)などの制限がある
![Page 6: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/6.jpg)
ワークフロー
![Page 7: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/7.jpg)
ワークフロー
• CI の処理順を「ワークフロー」で管理
• 基本的な部分(リポジトリからのダウンロード⇒ビルド)は自動で作ってくれる
• 追加で処理(ステップ)を加えたい場合、 OSS で公開されている、 BITRISE に対応した処理ユニットを使う
• ステップは GUI で追加したり削除したり
![Page 8: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/8.jpg)
設定方法を簡単にご紹介
![Page 9: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/9.jpg)
1. リポジトリを指定
![Page 10: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/10.jpg)
2. SSH キーを登録
![Page 11: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/11.jpg)
3. デフォルトのブランチを指定
![Page 12: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/12.jpg)
4. 自動で接続設定が行われる
![Page 13: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/13.jpg)
5. プロジェクトとスキーマを指定
![Page 14: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/14.jpg)
6. Webhook を指定
![Page 15: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/15.jpg)
7. ワークフローができる
![Page 16: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/16.jpg)
8. build を押せばビルドがはじまる
![Page 17: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/17.jpg)
ビルド結果一覧
![Page 18: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/18.jpg)
ログ確認
![Page 19: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/19.jpg)
カスタマイズ
![Page 20: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/20.jpg)
Step を追加する
![Page 21: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/21.jpg)
A. ビルド番号を簡単に変えたい
![Page 22: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/22.jpg)
「Set Xcode Project Build Number」を使う
ビルド番号やバージョン番号を
指定できる
![Page 23: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/23.jpg)
B. アプリ配布や SLACK につぶやきたい
![Page 24: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/24.jpg)
「 HockeyApp iOS Deploy 」「 Send a Slack message 」
などを使う( Crashlytics Deployer もあるよ)
![Page 25: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/25.jpg)
C. アプリ名を可変にしたい
![Page 26: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/26.jpg)
「 script 」でがんばる
BITRISE 内のサーバで実行する
スクリプトを記載できる
⇒ Info.plist の中を書き換えたり…
![Page 27: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/27.jpg)
D. iTunesConnect にアップしたい
![Page 28: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/28.jpg)
「 Deploy to iTunes Connect (with
Deliver) 」を使う
![Page 29: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/29.jpg)
罠
![Page 30: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/30.jpg)
Submitfor
TestFlightBeta
Testing ?
のフラグ設定が
逆になってる。
YES にすると審査に出てしまうので
注意
![Page 31: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/31.jpg)
他にもいろいろあります
![Page 32: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/32.jpg)
所要時間
git から clone でソース取得↓
cocoapods でダウンロード↓
ビルド↓
アプリを Testflight へアップ
約 10 分(割と前後あり)※ 無料枠だと厳しいかもしれない
![Page 33: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/33.jpg)
Android アプリでも使えるよ!http://qiita.com/e-takazawa/items/b1d6ff8acccc462e198b
![Page 34: BITRISEを使っています](https://reader035.vdocuments.mx/reader035/viewer/2022062823/587a25f31a28abbd388b50d1/html5/thumbnails/34.jpg)
たのしい CI ライフを!