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
GitLab CI/CD で C#/WPFアプリケーションのテストとインストーラーのビルド・デプロイを自動化する
Search
Hacarus Inc.
April 27, 2024
Programming
0
520
GitLab CI/CD で C#/WPFアプリケーションのテストとインストーラーのビルド・デプロイを自動化する
2024/4/27開催のC#パフォーマンス勉強会で発表した資料です
Hacarus Inc.
April 27, 2024
Tweet
Share
More Decks by Hacarus Inc.
See All by Hacarus Inc.
QA4AIに則ったMLOpsツールの活用
hacarus
0
570
0から協働ロボット外観検査システムを3ヵ月で具現化した軌跡
hacarus
0
100
ワンちゃんの健康を願う皆様に送る 犬心電図AI解析プロダクト紹介_AWS DevDay2022
hacarus
0
110
犬の心電AI解析プロダクト開発奮闘記 _クラウドからハード開発までてんこ盛り
hacarus
0
1.3k
ExplainableAIの概要とAmazon SageMaker Clarifyでの実装例
hacarus
0
630
AWS Step Functions を用いた非同期学習処理の例
hacarus
0
670
Dashでmyダッシュボードを作ろう ーpytrendsで見るコロナの感染拡大時期ー
hacarus
0
910
Interpretable Machine Learning: モデル非依存な解釈手法の紹介
hacarus
0
760
時系列データ予測手法の宇宙天気予報への応用
hacarus
0
1k
Other Decks in Programming
See All in Programming
Exploring the Implementation of “t.Run”, “t.Parallel”, and “t.Cleanup”
akarin
1
150
ts-morphを使ってコードリプレイスとASTへのハードルを下げる!
nyawach
2
130
新宿ダンジョンを可視化してみた
satoshi7190
3
420
Effectで作る堅牢でスケーラブルなAPIゲートウェイ / Robust and Scalable API Gateway Built on Effect
yasaichi
4
520
Ruby on Fails - effective error handling with Rails conventions
talyssonoc
0
210
Fast JSX: Don't clone props object #28768
yossydev
1
220
Direct Style Effect Systems The Print[A] ExampleA Comprehension Aid
philipschwarz
PRO
0
340
Docker_OSS_ホスティング入門
satokoki645
0
120
Documentation testsの恩恵 / Documentation testing benefits
ssssota
1
210
禅の心を手に入れよ
eltociear
1
440
SIMD Parallel Programming with the Vector API
josepaumard
0
240
Webアプリをできるだけコードを手書きしないで作ってみる
tomokusaba
2
210
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
20
1.8k
Teambox: Starting and Learning
jrom
128
8.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
39
2.5k
In The Pink: A Labor of Love
frogandcode
138
21k
From Idea to $5000 a Month in 5 Months
shpigford
378
45k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
123
39k
Unsuck your backbone
ammeep
664
57k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
Agile that works and the tools we love
rasmusluckow
325
20k
Transcript
1 GitLab CI/CD で C#/WPFアプリケーションのテストとインス トーラーのビルド・デプロイを自動化する 株式会社HACARUS 宇佐見一平
2 名前: 宇佐見 一平 略歴:2017-04 新卒でメーカーに入社 2019-03 HACARUSに転職 職務内容:AI外観検査プロダクトの開発 C#暦
2年くらい(Python 5年くらい) 趣味 :テレビゲーム、NFL 自己紹介
3 HACARUS Check 撮 像 検 査 Hardware ロボット+カメラ+照明を 組み合わせて最適な撮像
Software 少量良品データで 高速学習し AI 判定 C#(.NET8)/WPF
4 構築したパイプライン Windows PC GItLab CI Unit test Build Installer
Upload Installer Google Drive JJJJj Upload Installer Release Note
5 pages: tags: - windows stage: pages script: - "&
dotnet test ./HacarusCheckBasicVer2.sln --collect:'XPlat Code Coverage' --results-directory coverageResult" - "& 'C:/Users/hacarus/.dotnet/tools/reportgenerator.exe' -reports:'./coverageResult/*/coverage.cobertura.xml' -targetdir:'coveragereport' -reporttypes:Html" - mv coveragereport public artifacts: paths: - public GitLab CI用のyamlファイル(抜粋)
6 1. SaaSで提供されているGitLab CI/CDを利用 a. WPFはWindows環境でなければビルドできなさそう もし方法あれば教えてください 2. WindowsPC上でGitLab CI/CDをセットアップして実行する
a. GitLab Runnerという仕組みをGitLabが提供している CI/CDの流れ 1. コードをコミットすると GitLab Runnerが起動 2. Unit testを実行 3. タグ付けするとインストーラをビルドするジョブが実行 4. リリースノート自動生成 5. ビルド完了したらGoogleDriveへアップロード GitLab CI/CDをどこで動かすか
7 • 前回のリリース~今回のリリース間で mainにマージされたマージリクエストの項目をリリースノートに記載 する ◦ GitLabでリリースを作成する公式ツールである GitLab Release CLIを利用
◦ MRの情報をとるために、 python-gitlabを利用 リリースノートを自動生成して変更を確認
8 • ユニットテストの実行が自動化された • 誰でもインストーラーが簡単にビルドできるようになった • リリースノートが自動生成され、インストーラーでどういう機能が追加さ れたのかが一見してわかるようになった • すぐに生成物をセールスの人に共有できるようになった
CI/CDを設定してよかったこと
9 • ユニットテストの実行が自動化された • 誰でもインストーラーが簡単にビルドできるようになった • リリースノートが自動生成され、インストーラーでどういう機能が追加さ れたのかが一見してわかるようになった • すぐに生成物をセールスの人に共有できるようになった
CI/CDを設定してよかったこと 結論:自動化は楽しい