Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
カバレッジ率のバッヂ出す
Search
sisisin
December 24, 2016
Technology
0
660
カバレッジ率のバッヂ出す
ハッカソンでの発表資料です
sisisin
December 24, 2016
Tweet
Share
Other Decks in Technology
See All in Technology
俺の/私の最強アーキテクチャ決定戦開催 ― チームで新しいアーキテクチャに適合していくために / 20260322 Naoki Takahashi
shift_evolve
PRO
1
460
Cursor Subagentsはいいぞ
yug1224
2
110
AWS Systems Managerのハイブリッドアクティベーションを使用したガバメントクラウド環境の統合管理
toru_kubota
1
180
Embeddings : Symfony AI en pratique
lyrixx
0
360
Physical AI on AWS リファレンスアーキテクチャ / Physical AI on AWS Reference Architecture
aws_shota
1
170
GitHub Copilot CLI で Azure Portal to Bicep
tsubakimoto_s
0
270
CloudFrontのHost Header転送設定でパケットの中身はどう変わるのか?
nagisa53
1
210
AI時代のIssue駆動開発のススメ
moongift
PRO
0
270
Phase05_ClaudeCode入門
overflowinc
0
2.4k
Phase02_AI座学_応用
overflowinc
0
3.2k
Zephyr(RTOS)でOpenPLCを実装してみた
iotengineer22
0
140
AIエージェント×GitHubで実現するQAナレッジの資産化と業務活用 / QA Knowledge as Assets with AI Agents & GitHub
tknw_hitsuji
0
260
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
210
Un-Boring Meetings
codingconduct
0
240
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Thoughts on Productivity
jonyablonski
75
5.1k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
220
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Unsuck your backbone
ammeep
672
58k
Building Applications with DynamoDB
mza
96
7k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
68
38k
Navigating Weather and Climate Data
rabernat
0
150
Transcript
カバレッジ率のバッヂ出す team zoi
概要 ゴール:coverallsとか使わないでREADMEにカバレッジ率のバッヂ出す モチベーション:せっかくフロントのカバレッジだしてもバックエンドと別に集計するサービ スがない
なんとかしてフロントのカバレッジを可視化 したい・・・したくない?
成果物 アプリ名:zone of integration リポジトリ: opt-tech/zoi アプリ概要: AWS lambdaを利用して、CIから渡されたカバレッジ率を元にバッジ画像を用意してS3 に配置、これをバッヂとして利用する
アーキテクチャ S3(private) S3(public) CircleCI test & report coverage GitHub repository
ZOI(lambda function) put coverage json file get badge image put badge image file link to badge file CI hook event trigger to
利用した技術 - CircleCI : 言わずと知れたCIサービス - AWS lambda : 言わずと知れたFunction
as a Service - 実行環境 : Node.js 4.3 : 言わずと知れたJavaScript実行環境 - AWS S3 : 言わずと知れたStorage as a Service - Shields.io : 言わずと知れたバッヂ生成サービス - ほんとか?
デモ
機能 - カバレッジ率を出す - バッヂの色、バッヂの名称の指定が可能 - バッヂの数は無制限 - 出したい種類のバッヂを出したい数だけ用意できる
苦労とか工夫とか 苦労 - CI -> trigger -> lambdaの実行が結構時間かかる - 最小限だけど2minとかCIにかかるしlambdaが起動されるのに最大
4,5分ぐらい待たされることがあ る - lambdaの動作確認が大変 - ローカルで動かせるようにちゃんと仕込みを入れたのが 17時だった(もっと早くやればよかった) - GitHubでバッヂ設置するとキャッシュされて更新されない(´・ω・`) - (´・ω・`) - あきむらさんがどこからともなく Content-TypeとCacheControlを設定するとうまくいくことを発見して 解決した
苦労とか工夫とか 工夫 - lambdaのデプロイはdeploy.sh作ってコマンド一発にした - 捗る - カバレッジ測るリポジトリは既存のちょうどいい使い回し - これ作るのに時間取られるのもアレなので
- いい感じに分担出来た - しめにゃん:AWSの構築(最近やったのでわりと覚えてて上手いこといった) - あきむら:lambda functionの実装
おしまい 質疑