-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
50 lines (40 loc) · 1.43 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
image: Visual Studio 2022
configuration: Release
cache:
- 'C:\ProgramData\chocolatey\bin -> appveyor.yml'
- 'C:\ProgramData\chocolatey\lib -> appveyor.yml'
install:
- choco install gitversion.portable -pre -y
before_build:
- dotnet restore
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
build:
project: Image-Sort.sln
parallel: true
verbosity: minimal
environment:
IGNORE_NORMALISATION_GIT_HEAD_MOVE: "1"
test_script:
- cmd: dotnet test "C:\projects\image-sort\tests\ImageSort.UnitTests\ImageSort.UnitTests.csproj" --configuration Release --no-build
after_test:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true") {
cd .\src\ImageSort.WindowsSetup\;
gitversion /updatewixversionfile | Out-String;
MSBuild /p:Configuration=Release /p:Platform=x64 /p:OutputPath=..\..\artifacts\x64 /p:BuildProjectReferences=false | Out-String;
MSBuild /p:Configuration=Release /p:Platform=x86 /p:OutputPath=..\..\artifacts\x86 /p:BuildProjectReferences=false | Out-String;
cd ..\..;
}
artifacts:
- path: '.\artifacts\**\*.msi'
name: Image Sort Installer
type: File
#deploy:
# - provider: GitHub
# release: Image Sort v$(appveyor_build_version)
# tag: $(APPVEYOR_REPO_TAG_NAME)
# auth_token:
# secure: Gka4zhwdCzAkR5hGyS988om/2MSNTP+BZDilT87BtI1jA7NYq9x0BB1cBUO3gPKa
# artifact: Image Sort Installer
# on:
# APPVEYOR_REPO_TAG: true