Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
出来るCI
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Suwashimizu
July 19, 2017
510
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
出来るCI
BitbucketPiplinesでCIを導入した話
Suwashimizu
July 19, 2017
More Decks by Suwashimizu
See All by Suwashimizu
IntelliJのTemplateを使おう
suwashimizu
2
440
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
3
640
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
400
Rails Girls Zürich Keynote
gr2m
96
14k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.7k
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Balancing Empowerment & Direction
lara
6
1.4k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
240
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
680
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Transcript
始めようCI BITBUCKET PIPELINES で 出来るCI
自己紹介 名前:Kanege 所属:AnysenseAndroid エンジニア 好きなもの:kotlin と と 挨拶は「こっとり~ん」
CI is 何? 継続的インテグレーション コンパイルやテストといったビルド処理を一日 に何度も実行することにより、フィードバック サイクルを短くし、品質を向上させる仕組み。 結合テストの自動化、専用のCI サーバーで行うの が望ましい。
つまり・・ 動作環境は別々でも 検証環境を1箇所にすることで 正しく動作していることをが担保できる。
pipelines is 何 Atlassian のBitbucket で提供されているCI サービス docker をベースとしている プロジェクトのroot
にbitbucket-pipelines.yml に設 定を記述する webhooks を使用して外部サービスと連携が可能 slack でテストの結果を通知したり,aws にデプ ロイしたり
導入事例
起こっていた問題 いつの間にかTest が壊れてる問題
起こっていた問題 PR1 -> develop: 既存のTest 破壊,Test せずにマージ
起こっていた問題 PR1 -> develop: 既存のTest 破壊,Test せずにマージ PR2 -> develop:Test
せずにマージ
起こっていた問題 PR1 -> develop: 既存のTest 破壊,Test せずにマージ PR2 -> develop:Test
せずにマージ PR3 -> develop: ここでTest して初めて問題発覚
破壊したやつ誰だお
起こっていた問題 どうすれば良かった? Test を回すことが浸透していなかった -> Test への 意識を上げる PR 時にtest
を回すように心がける -> 忘れること もある 個人の意識で解決できる問題なのだろうか?
人に依存するよりシステムに任せよう。
PIPELINES で解決 開発環境:Android Build-Tools 24.0.0 develop ブランチに変更があった際にpipelines が 走る ./gradlew
test でTest を実行 結果をslack に通知する
Android だとこんな設定です! bitbucket-pipelines.yml image: uber/android-build-environment pipelines: branches: develop://実行 指定 -
step://step 定義, script:// 指定 - mkdir -p "$ANDROID_HOME/licenses" - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55 - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd - echo y | android update sdk --no-ui -a - touch local.properties - ./gradlew dependencies || true - ./gradlew test // test実行
develop ブランチに変更があると pipelines が走り slack に通知してくれるようになる!
開始時 成功時 失敗時
異常があればすぐに気付けるので 原因の特定が用意になった!
None
まとめ テスト自動化とその結果をslack にPOST してくれ る! バグがあれば即行気付ける、健全な状態を保て る! ワークフローを1 つに纏めてくれる!
自動化を進めて開発に集中しよう!
ご清聴ありがとうございました