1
+ # Notes:
2
+ # - Minimal appveyor.yml file is an empty file. All sections are optional.
3
+ # - Indent each level of configuration with 2 spaces. Do not use tabs!
4
+ # - All section names are case-sensitive.
5
+ # - Section names should be unique on each level.
6
+
7
+ # ---------------------------------#
8
+ # general configuration #
9
+ # ---------------------------------#
10
+
11
+ # version format
12
+ version : 1.0.{build}
13
+
14
+ # Do not build on tags (GitHub only)
15
+ skip_tags : false
16
+
17
+ # ---------------------------------#
18
+ # environment configuration #
19
+ # ---------------------------------#
20
+
21
+ # Operating system (build VM template)
22
+ os : Windows Server 2012 R2
23
+
24
+ # ---------------------------------#
25
+ # build configuration #
26
+ # ---------------------------------#
27
+
28
+ install :
29
+ ps : |
30
+ $OneGetZipPath = join-path $pwd 'oneget.zip'
31
+ $OneGetProgramFilesLocation = join-path $env:programfiles 'windowspowershell/modules/oneget'
32
+ if (-not (test-path $OneGetProgramFilesLocation)) {mkdir $OneGetProgramFilesLocation | out-null}
33
+ (new-object net.webclient).downloadfile('http://oneget.org/oneget.zip', $OneGetZipPath)
34
+ $shell = new-object -com shell.application
35
+ $zip = $shell.NameSpace($OneGetZipPath)
36
+ foreach($item in $zip.items())
37
+ {
38
+ $shell.Namespace($OneGetProgramFilesLocation).copyhere($item)
39
+ }
40
+ find-package pester | out-null
41
+ install-module pester
42
+
43
+ # to run your custom scripts instead of automatic MSBuild
44
+ # build_script:
45
+ # - ps:
46
+
47
+ # to disable automatic builds
48
+ build : off
49
+
50
+ # ---------------------------------#
51
+ # tests configuration #
52
+ # ---------------------------------#
53
+
54
+ # to run your custom scripts instead of automatic tests
55
+ test_script :
56
+ ps : |
57
+ if (test-path ./test/unit) {
58
+ Invoke-Pester -path ./test/unit -EnableExit
59
+ }
60
+ else {
61
+ Write-Host "No tests found under $(join-path $pwd '/test/unit')"
62
+ }
63
+
64
+ # to disable automatic tests
65
+ # test: off
66
+
67
+ # ---------------------------------#
68
+ # deployment configuration #
69
+ # ---------------------------------#
70
+
71
+ # to run your custom scripts instead of provider deployments
72
+ # deploy_script:
73
+
74
+ # to disable deployment
75
+ deploy : off
0 commit comments