-
Notifications
You must be signed in to change notification settings - Fork 36
/
appveyor.yml
59 lines (46 loc) · 2.27 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
# 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\Get-NetView
init:
- ps: $Env:repoName = $($env:APPVEYOR_REPO_NAME.Split('/')[1])
- ps: $version = "$(Get-Date -format yyyy.MM.dd).$env:appveyor_build_number"
- ps: Update-AppveyorBuild -Version $version
# Install script prior to running tests
install:
- ps: . .\tests\setup\install.ps1
# Initiate tests
test_script:
- ps: . .\tests\setup\initiate-tests.ps1
# finalize build
deploy_script:
- ps: . .\tests\setup\deploy.ps1
version: '{build}'
# 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: yM66usk26GL3IV6hGkA0AZsCznJKtjBnzuKEGzbN5WpK+AT7rOXmNKxj6kfAR7EZ
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: true
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))