forked from SparkDevNetwork/Rock
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathappveyor.yml
83 lines (64 loc) · 1.73 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
#---------------------------------#
# Rock RMS #
#---------------------------------#
# version format
version: 1.3.{build}
# increment flag
pull_requests:
do_not_increment_build_number: true
# branches to build
branches:
only:
- master
- beta
- alpha
- appveyor
- pre-alpha-release
# Do not build on tags (GitHub only)
skip_tags: true
# operating system (build VM template)
image: Visual Studio 2022
configuration: Release
platform: Any CPU
# clone directory and depth
clone_depth: 1
clone_folder: C:\projects\Rock
# scripts that run after cloning repository
install:
- ps: >-
$fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
$fileContent += $env:priv_key.Replace(' ', "`n")
$fileContent += "`n-----END RSA PRIVATE KEY-----`n"
Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
# directories to preserve between builds
cache:
#- node_modules
#- packages
# scripts to run before build
# (New-Object Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/v3.4.4/nuget.exe', "$nugetDir\NuGet.exe")
before_build:
- ps: >-
(Get-Content "C:\projects\Rock\RockWeb\web.config").Replace('<compilation debug="true"', '<compilation debug="false"') | Set-Content "C:\projects\Rock\RockWeb\web.config"
# build configuration
build:
project: Rock.sln
publish_wap: true
parallel: true
verbosity: minimal
build_script:
- cmd: >-
nuget restore
"C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv"
"c:\projects\Rock\rock.sln" /build Release
# flag to stop building if an error throws
matrix:
fast_finish: true
# test
test:
assemblies:
only:
- Rock.Tests.dll
# IIS artifact configuration
artifacts:
- path: RockWeb
name: NewSpringRockKit