-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
48 lines (38 loc) · 1.51 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
#---------------------------------#
# environment configuration #
#---------------------------------#
version: 1.0.{build}
# Needed if project name contains underscore
clone_folder: C:\projects\DSCR_IniFile
init:
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
- git config --global core.autocrlf true
install:
- git clone https://github.com/PowerShell/DscResource.Tests
- ps: |
$moduleName = 'DSCR_IniFile'
Import-Module -Name "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
Invoke-AppveyorInstallTask
Write-Verbose -Message "PowerShell version $($PSVersionTable.PSVersion)" -Verbose
$pester = Get-Module -ListAvailable -Name Pester | sort Version -Descending | select -First 1
Write-Verbose -Message "Pester version $($pester.Version.ToString())" -Verbose
#---------------------------------#
# build configuration #
#---------------------------------#
build: false
#---------------------------------#
# test configuration #
#---------------------------------#
test_script:
- ps: |
Invoke-AppveyorTestScriptTask `
-Type 'Default' `
-CodeCoverage `
-CodeCovIo `
-DisableConsistency `
-ExcludeTag @('Markdown')
# scripts to run before deployment
after_test:
- ps: |
Import-Module -Name "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
Invoke-AppveyorAfterTestTask -ResourceModuleName $moduleName