-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathappveyor.yml
68 lines (51 loc) · 2.57 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
# YAML Reference Guide : https://www.appveyor.com/docs/appveyor-yml/
# Environmental Variables Guide : https://www.appveyor.com/docs/environment-variables/
# YAML Validator : https://ci.appveyor.com/tools/validate-yaml
# AppVeyor Build Pipeline : https://www.appveyor.com/docs/build-configuration/
# GitHub push with tokens : https://www.appveyor.com/docs/how-to/git-push/
# Repo cloned into this folder on the build worker
clone_folder: c:\projects\Convert-LBFO2SET
# Convert-LBFO2SET uses date-based versioning.
# Version will be of format: yyyy.MM.dd.Build Number e.g. 2019.06.09.buildNumber
init:
- ps: $Env:repoName = $($env:APPVEYOR_REPO_NAME.Split('/')[1])
- ps: $date = Get-Date
- ps: Update-AppveyorBuild -Version "$($date.year).$($date.month).$($date.day).$env:appveyor_build_number"
- ps: $Env:BuildVersion = "$($date.year).$($date.month).$($date.day).$env:appveyor_build_number"
# Install script prior to running tests
install:
- ps: . .\tests\build\setup\install.ps1
# Initiate tests
test_script:
- ps: . .\tests\build\setup\initiate-tests.ps1
# finalize build
deploy_script:
- ps: . .\tests\build\setup\deploy.ps1
version: '{build}'
image:
- Visual Studio 2017
# Environment variables for PowerShell Gallery (NuGetAPIKey) and GitHub (GitHubKey) API key for publishing updates
# - The "secure:" value is the Appveyor encryption of the key
# - GitHub update occurs to ensure that the module version is incremented based on the build number
#CoreNetBuilder
environment:
NuGetApiKey:
secure: LNb9o/k03RKeTsgiFQab+HXXnYCyUb5N+42HRShmCaEGw6+j/aa6CmW5gjkaXfTR
GitHubKey:
secure: 4VTkUGIAUqMtDSbrIrbn856kPmOLVYNSSy/NwsnQajL+7o+xpoqWZcTpYfEXco2/
APPVEYOR_RDP_PASSWORD:
secure: q9cNMN8o/tkzFDvDf+npkj5MOgFVGOLnJokZq/d4BUY=
# Disable automatic builds; Without this, the following error shows up:
# "Specify a project or solution file. The directory does not contain a project or solution file."
build: "off"
max_jobs: 1
# Ignore testing a commit if specific strings used in commit message: updated readme, update readme, update docs, update version, update appveyor
skip_commits:
message: /updated readme.*|update readme.*s|update docs.*|update version.*|update appveyor.*/
files:
- README.md
# There's no need to alter the build number for a Pull Request (PR) since they don't modify anything
pull_requests:
do_not_increment_build_number: false
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))