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
590
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.4k
ExplainableAIの概要とAmazon SageMaker Clarifyでの実装例
hacarus
0
640
AWS Step Functions を用いた非同期学習処理の例
hacarus
0
680
Dashでmyダッシュボードを作ろう ーpytrendsで見るコロナの感染拡大時期ー
hacarus
0
920
Interpretable Machine Learning: モデル非依存な解釈手法の紹介
hacarus
0
770
時系列データ予測手法の宇宙天気予報への応用
hacarus
0
1k
Other Decks in Programming
See All in Programming
2024 コーディング研修
ckazu
2
620
Three ways to use AI on Android: The Good, the Bad and the Ugly
marxallski
0
120
Amazon Aurora Serverless v2が意外と高かった話と、AWS Database Migration Serviceの話
satoshi256kbyte
1
100
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
690
An adventure of Happy Eyeballs
coe401_
1
120
Going beyond Apache Parquet's default settings
xhochy
0
150
Powerfully Typed TypeScript
euxn23
3
850
酒飲んでたらテックリードになった話
spbaya0141
0
200
Namespace, What and Why
tagomoris
3
540
Jetpack Composeとデザインシステム
rmakiyama
0
210
Ruby on Fails - effective error handling with Rails conventions
talyssonoc
0
260
SIMD Parallel Programming with the Vector API
josepaumard
0
250
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
Navigating Team Friction
lara
179
13k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
The Power of CSS Pseudo Elements
geoffreycrofte
62
5k
The Mythical Team-Month
searls
217
42k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
22
1.4k
KATA
mclloyd
16
12k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
0
95
Design by the Numbers
sachag
274
18k
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
Clear Off the Table
cherdarchuk
85
310k
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を設定してよかったこと 結論:自動化は楽しい