forked from TumblThreeApp/TumblThree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
125 lines (123 loc) · 3.03 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#version: 1.0.10.{build}
#skip_branch_with_pr: true
image: Visual Studio 2019
install:
# Set "build version number" to current version or when tagged to "tag name"
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
$x = $env:APPVEYOR_REPO_TAG_NAME
if($x.startswith("v","CurrentCultureIgnoreCase")) { $x = $x.substring(1) }
$env:MY_BUILD_VERSION="$x"
$x = $x + ".$env:APPVEYOR_BUILD_NUMBER"
Update-AppveyorBuild -Version "$x"
}
else
{
Set-AppveyorBuildVariable -Name TT_VER -Value (& "$env:APPVEYOR_BUILD_FOLDER\scripts\get-version.ps1" -versionInfoFile "$env:APPVEYOR_BUILD_FOLDER\src\TumblThree\SharedAssemblyInfo.cs")
$s = $env:TT_VER
[VERSION]$vs = $s -replace '^.+((\d+\.){3}\d+).+', '$1'
$s = '{0}.{1}.{2}' -f $vs.Major,$vs.Minor,$vs.Build
Update-AppveyorBuild -Version "$s.$env:APPVEYOR_BUILD_NUMBER"
}
environment:
DeployApiCode:
secure: jgYawyAbq3Q76D1Ze0oho6jobDKCkcEeTNbg5NoYi6o=
matrix:
- job_name: build_skip
job_group: build
- job_name: build_x64_m
job_group: build
- job_name: build_x64
job_group: build
- job_name: build_x86
job_group: build
- job_name: deployZips
job_depends_on: build
matrix:
fast_finish: true
assembly_info:
patch: true
file: '**\SharedAssemblyInfo.cs'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
configuration: Release
branches:
except:
- dummy_branch
for:
-
matrix:
only:
- job_name: build_skip
skip_commits:
files:
- lib/
- src/
skip_tags: true
init:
- appveyor exit
environment:
PLATFORM: x64
-
#branches:
# only:
# - master
matrix:
only:
- job_name: build_x64_m
only_commits:
files:
- lib/
- src/
skip_tags: true
environment:
PLATFORM: x64
-
matrix:
only:
- job_name: build_x64
skip_non_tags: true
environment:
PLATFORM: x64
-
matrix:
only:
- job_name: build_x86
skip_non_tags: true
environment:
PLATFORM: x86
-
matrix:
only:
- job_name: deployZips
skip_non_tags: true
build: off
environment:
DeployNow: true
before_build:
- ps: scripts/appveyor-prebuild.ps1
nuget restore "src\TumblThree\TumblThree.sln"
build:
project: src\TumblThree\TumblThree.sln
verbosity: normal
after_build:
- ps: scripts/appveyor-postbuild.ps1
artifacts:
- path: artifacts/*.zip
name: TumblThree
before_deploy:
- ps: scripts/appveyor-predeploy.ps1
deploy:
release: TumblThree-v$(MY_BUILD_VERSION)
description: 'Release description'
provider: GitHub
auth_token:
secure: Fq+JvcCNMJohda1wv07DI90aCYW6+peIWJQ+mDXxsOQI7i+XjdexIlzMK1bV80N7
artifact: /.*\.zip/ # upload all zips to release assets
draft: true
prerelease: false
on:
#branch: master # release from master branch only
DeployNow: true # deploy on tag push only