0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

UWPをgitlabで自動テストするときのTips

Last updated at Posted at 2022-07-04

UWPをgitlabで自動テストするときのTips

Yamlの正当性の事前チェック

  • gitlabのCI/CD->Editorで事前確認が可能

コマンドはPowerShell上から実行される。

  • PowerShellが古いと動かないので更新する。
  • MSBuildはフルパスで入力するか、PowerShellでパスが通っている状態になっている必要がある。
  • デフォルトログがCP932で出力されるので以下を
    「.gitlab-ci.yml」に追加しておくとログが文字化けしない
- "& chcp 65001"
  • 空白を含む実行ファイルは頭に&をつける。
  - '& ''C:\Program Files\xxxxx\MSBuild.exe'' ''test.sln'' -t:Rebuild -p:Configuration=Release
    -p:Platform="x64"

'
  • Nugetの復元を手動で指定しないとxamlのコンパイルで引っかかる。
  - '& ''C:\Program Files\xxxxx\MSBuild.exe'' /t:restore'

ステージ間でのファイルの引継ぎ

artifactsを設定する必要があるが、UWPのファイルはデカすぎるので
gitlab側の設定を変更しないとファイルの引継ぎが出来ない。

自前で立てている場合は

Admin area -> Settings -> Continuout Integration and Deployment
の Maximum artifacts sizeを変更する。

参考:https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2584

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?