forked from microsoft/PowerStig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (50 loc) · 1.82 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
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
version: 2.3.0.{build}
skip_commits:
files:
- '**/*.md'
- .github/*
#---------------------------------#
# environment configuration #
#---------------------------------#
install:
- ps: Write-Verbose -Message "PowerShell version $($PSVersionTable.PSVersion)" -Verbose
- ps: (Import-PowerShellDataFile "$env:APPVEYOR_BUILD_FOLDER\PowerStig.psd1").RequiredModules |
ForEach-Object { Install-Module $PSItem.moduleName -RequiredVersion $PSItem.ModuleVersion -Repository PSGallery -Scope CurrentUser -Force }
- git clone https://github.com/PowerShell/DscResource.Tests
- ps: Import-Module "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
- ps: Import-Module "$env:APPVEYOR_BUILD_FOLDER\Tools\AppVeyor\AppVeyor.psm1"
- ps: Invoke-AppveyorInstallTask
#---------------------------------#
# build configuration #
#---------------------------------#
build: false
#---------------------------------#
# test configuration #
#---------------------------------#
test_script:
- ps: |
Invoke-AppveyorTestScriptTask -CodeCoverage -CodeCovIo -ExcludeTag @('tools')
#---------------------------------#
# deployment configuration #
#---------------------------------#
# Scripts to run before deployment
before_deploy:
- ps: Invoke-PowerStigAppveyorAfterTestTask
for:
-
branches:
only:
- master
deploy:
- provider: Environment
name: Test PS Gallery
on:
appveyor_repo_tag: true