7
7
# enforce crlf fixing
8
8
init :
9
9
git config --global core.autocrlf true
10
- # restrict how much history we try to grab
11
- clone_depth : 3
10
+
11
+ # history limited to 15 commits, since we ran into trouble with a limit of 3
12
+ # the limit can be rather
13
+ clone_depth : 15
14
+ # explicitly do not shallow-clone.
15
+ # Line-Endings are wrong on github, because of CRLF fixing
16
+ # shallow-clone would download a zip, which doesn't fix the line-endings for unit-tests
17
+ shallow_clone : false
18
+
12
19
# ignore a certain subset of files when evaluating build-changes
13
20
skip_commits :
14
21
files :
15
22
- docs/*
16
23
- ' **/*.md'
17
- # intermediately enable yml changes to trigger builds, because codecov changes only changes the codecov yml ...
18
- # - '**/*.yml'
19
24
- license
20
25
- License.rtf
21
26
branches :
22
27
only :
23
28
- master
24
- - staging
25
29
- next
26
30
skip_tags : true
27
31
@@ -44,6 +48,7 @@ dotnet_csproj:
44
48
file : ' RubberduckBaseProject.csproj' # ;*\Rubberduck.Core.csproj'
45
49
version : ' {version}'
46
50
assembly_version : ' {version}'
51
+ # patching fails if we try to patch properties we didn't define
47
52
# file_version: '{version}'
48
53
# informational_version: '{version}'
49
54
@@ -61,24 +66,40 @@ build:
61
66
# Otherwise we might run tests against artifacts that do not exist
62
67
test_script :
63
68
# we use -returntargetcode to fail the build if tests fail
64
- - OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTests\bin\RubberduckTests.dll" -output:".\Rubberduck_Coverage.xml"
65
- - OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTestsCodeAnalysis\bin\RubberduckTestsCodeAnalysis.dll" -output:".\RubberduckCodeAnalysis_Coverage.xml"
69
+ - cmd : OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTests\bin\RubberduckTests.dll" -output:".\Rubberduck_Coverage.xml"
70
+ - cmd : OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTestsCodeAnalysis\bin\RubberduckTestsCodeAnalysis.dll" -output:".\RubberduckCodeAnalysis_Coverage.xml"
66
71
# when using test_script, after_test seems to not be executed
67
- - codecov -f "Rubberduck_Coverage.xml RubberduckCodeAnalysis_Coverage.xml"
72
+ - cmd : codecov -f "Rubberduck_Coverage.xml RubberduckCodeAnalysis_Coverage.xml"
68
73
74
+ # Define the installer-name depending on what branch we're building on
75
+ environment :
76
+ installer_dir : Rubberduck.Deployment\InnoSetup\Installers\
69
77
for :
70
- - branches :
71
- only :
72
- - next
73
- after_test :
74
- - iscc /O "Rubberduck.Deployment\InnoSetup\Rubberduck.Installer.Build.iss"
75
- - move Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.exe Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe
76
- - branches :
77
- only :
78
- - master
79
- after_test :
80
- - iscc /O "Rubberduck.Deployment\InnoSetup\Rubberduck.Installer.Build.iss"
81
- - move Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.exe Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe
78
+ -
79
+ branches :
80
+ only :
81
+ - next
82
+ environment :
83
+ installer_name : Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe
84
+ -
85
+ branches :
86
+ only :
87
+ - master
88
+ environment :
89
+ installer_name : Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%.exe
90
+ -
91
+ branches :
92
+ except :
93
+ - master
94
+ - next
95
+ environment :
96
+ # fall back to calling the installer after the branch we're on
97
+ installer_name : Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-%APPVEYOR_REPO_BRANCH%.exe
98
+
99
+ # Create Installers for
100
+ after_test :
101
+ - cmd : iscc /O "Rubberduck.Deployment\InnoSetup\Rubberduck.Installer.Build.iss"
102
+ - cmd : move %INSTALLER_DIR%\Rubberduck.Setup.exe %INSTALLER_DIR%\%INSTALLER_NAME%
82
103
83
104
# grab the installers we produce and upload them to github :)
84
105
artifacts :
@@ -91,7 +112,7 @@ deploy:
91
112
description : AppVeyor build on [master] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)
92
113
auth_token :
93
114
secure : NVAZgFRSk566SP5QDge5gYRWCaLi4NJJPTNk3QengH15wL9iVldfrFOllbzKXExq
94
- artifact : Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.$(appveyor_build_version).exe
115
+ artifact : $(installer_dir)\$(installer_name)
95
116
draft : true
96
117
prerelease : false
97
118
on :
@@ -102,7 +123,7 @@ deploy:
102
123
description : AppVeyor build on [next] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)
103
124
auth_token :
104
125
secure : NVAZgFRSk566SP5QDge5gYRWCaLi4NJJPTNk3QengH15wL9iVldfrFOllbzKXExq
105
- artifact : Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.$(appveyor_build_version)-pre.exe
126
+ artifact : $(installer_dir)\$(installer_name)
106
127
draft : false
107
128
prerelease : true
108
129
on :
0 commit comments