-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathappveyor.yml
83 lines (70 loc) · 2.02 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: 3.15.1.{build}
os: Visual Studio 2022
environment:
matrix:
- RELEASE_TAG: 'false'
- RELEASE_TAG: 'true'
configuration:
- Debug
- Release
matrix:
exclude:
- RELEASE_TAG: 'false'
configuration: Release
- RELEASE_TAG: 'true'
configuration: Debug
branches:
only:
- develop
- /^OpenTween.+/ # release tag
for:
- # for dev build
matrix:
only:
- RELEASE_TAG: 'false'
skip_tags: true
assembly_info:
patch: true
file: OpenTween\Properties\AssemblyInfo.cs
assembly_version: '{version}'
artifacts:
- name: OpenTween.zip
path: OpenTween_dev-$(APPVEYOR_BUILD_NUMBER).zip
- # for release build
matrix:
only:
- RELEASE_TAG: 'true'
skip_non_tags: true
artifacts:
- name: OpenTween.zip
path: $(APPVEYOR_REPO_TAG_NAME).zip
build:
project: OpenTween.sln
verbosity: minimal
cache:
- '%UserProfile%\.nuget\packages -> OpenTween\OpenTween.csproj, OpenTween.Tests\OpenTween.Tests.csproj'
init:
- git config --global core.autocrlf true
before_build:
- nuget restore
- ps: Set-Content .\msbuild.rsp "/warnaserror /p:DebugType=None /p:ContinuousIntegrationBuild=true"
test:
assemblies:
only:
- OpenTween.Tests.dll
after_test:
- ps: |
$env:PATH = $env:PATH + ';C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\Roslyn\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\'
$binDir = '.\OpenTween\bin\' + $env:CONFIGURATION + '\net48\'
if ($env:RELEASE_TAG -eq 'true') {
$destPath = $env:APPVEYOR_REPO_TAG_NAME + '.zip'
} else {
$destPath = 'OpenTween_dev-' + $env:APPVEYOR_BUILD_NUMBER + '.zip'
}
if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -ne $null) {
$headCommit = $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT
} else {
$headCommit = 'HEAD'
}
.\tools\build-zip-archive.ps1 -BinDir $binDir -DestPath $destPath -HeadCommit $headCommit
# vim: et fenc=utf-8 sts=2 sw=2 ts=2