Skip to content

Commit 1634f68

Browse files
committed
appveyor reordering, comments and small simplifications
1 parent 9e0816a commit 1634f68

File tree

1 file changed

+72
-53
lines changed

1 file changed

+72
-53
lines changed

appveyor.yml

Lines changed: 72 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
version: '2.1.1.{build}'
22

3+
# add nuget api to hosts file, making sure we can actually nuget restore for the build
4+
hosts:
5+
api.nuget.org: 93.184.221.200
6+
7+
# enforce crlf fixing
8+
init:
9+
git config --global core.autocrlf true
10+
# restrict how much history we try to grab
11+
clone_depth: 3
12+
# ignore a certain subset of files when evaluating build-changes
313
skip_commits:
414
files:
515
- docs/*
616
- '**/*.md'
7-
- '**/*.yml'
17+
#- '**/*.yml'
818
- license
919
- License.rtf
1020
branches:
@@ -13,69 +23,78 @@ branches:
1323
- next
1424
skip_tags: true
1525

26+
# build-matrix: all Release CPUs on VS2017
1627
image: Visual Studio 2017
1728
configuration: Release
18-
platform: Any CPU
29+
platform:
30+
- Any CPU
31+
- x64
32+
- x86
33+
34+
# cache the nuget packages unless something changed there
35+
cache:
36+
- packages/ -> **/packages.config
37+
38+
1939
install:
20-
- cmd: set PATH=C:\Program Files (x86)\MSBuild\15.0\Bin;%PATH%
21-
init:
22-
- git config --global core.autocrlf true
23-
before_build:
24-
- choco install innosetup
25-
build:
26-
verbosity: minimal
40+
set PATH=C:\Program Files (x86)\MSBuild\15.0\Bin;%PATH%
2741
assembly_info:
2842
patch: true
2943
file: RetailCoder.VBE\Properties\AssemblyInfo.cs
3044
assembly_version: '{version}'
31-
hosts:
32-
api.nuget.org: 93.184.221.200
45+
46+
before_build:
47+
cinst innosetup
48+
build:
49+
verbosity: minimal
50+
3351
before_package:
34-
- cmd: copy Rubberduck.Inspections\bin\Release\Rubberduck.Inspections.dll RetailCoder.VBE\bin\Release\Rubberduck.Inspections.dll
52+
- copy Rubberduck.Inspections\bin\Release\Rubberduck.Inspections.dll RetailCoder.VBE\bin\Release\Rubberduck.Inspections.dll
3553

3654
for:
37-
- branches:
38-
only:
39-
- next
40-
after_test:
41-
- iscc /q "Installer Build Script.iss"
42-
- cmd: move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe
43-
- branches:
44-
only:
45-
- master
46-
after_test:
47-
- iscc /q "Installer Build Script.iss"
48-
- cmd: move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%.exe
55+
- branches:
56+
only:
57+
- next
58+
after_test:
59+
- iscc /q "Installer Build Script.iss"
60+
- move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe
61+
- branches:
62+
only:
63+
- master
64+
after_test:
65+
- iscc /q "Installer Build Script.iss"
66+
- move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%.exe
4967

68+
# grab the installers we produce and upload them to github :)
5069
artifacts:
51-
- path: Installers\Rubberduck.Setup.*.exe
52-
name: Rubberduck
70+
- path: Installers\Rubberduck.Setup.*.exe
71+
name: Rubberduck
5372
deploy:
54-
- provider: GitHub
55-
tag: Rubberduck v$(appveyor_build_version)
56-
release: Rubberduck v$(appveyor_build_version)
57-
description: AppVeyor build on [master] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version)
58-
auth_token:
59-
secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz
60-
artifact: Installers\Rubberduck.Setup.$(appveyor_build_version).exe
61-
draft: true
62-
prerelease: false
63-
on:
64-
branch: master
65-
- provider: GitHub
66-
tag: Rubberduck v$(appveyor_build_version)
67-
release: Rubberduck v$(appveyor_build_version)-pre
68-
description: AppVeyor build on [next] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version)
69-
auth_token:
70-
secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz
71-
artifact: Installers\Rubberduck.Setup.$(appveyor_build_version)-pre.exe
72-
draft: false
73-
prerelease: true
74-
on:
75-
branch: next
73+
- provider: GitHub
74+
tag: Rubberduck v$(appveyor_build_version)
75+
release: Rubberduck v$(appveyor_build_version)
76+
description: AppVeyor build on [master] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version)
77+
auth_token:
78+
secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz
79+
artifact: Installers\Rubberduck.Setup.$(appveyor_build_version).exe
80+
draft: true
81+
prerelease: false
82+
on:
83+
branch: master
84+
- provider: GitHub
85+
tag: Rubberduck v$(appveyor_build_version)
86+
release: Rubberduck v$(appveyor_build_version)-pre
87+
description: AppVeyor build on [next] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version)
88+
auth_token:
89+
secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz
90+
artifact: Installers\Rubberduck.Setup.$(appveyor_build_version)-pre.exe
91+
draft: false
92+
prerelease: true
93+
on:
94+
branch: next
7695
notifications:
77-
- provider: Webhook
78-
url: http://stats.zomis.net/GithubHookSEChatService/hooks/github/payload?roomId=14929
79-
on_build_success: true
80-
on_build_failure: true
81-
on_build_status_changed: false
96+
- provider: Webhook
97+
url: http://stats.zomis.net/GithubHookSEChatService/hooks/github/payload?roomId=14929
98+
on_build_success: true
99+
on_build_failure: true
100+
on_build_status_changed: false

0 commit comments

Comments
 (0)