forked from PowerShell/PSDscResources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (36 loc) · 1.28 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
#---------------------------------#
# environment configuration #
#---------------------------------#
version: 2.4.{build}.0
os: Visual Studio 2015
install:
- git clone https://github.com/PowerShell/DscResource.Tests
- ps: Import-Module -Name .\Tests\TestHelpers\WMF5Dot1Installation.psm1 -Force
- ps: Install-Wmf5Dot1
- ps: Start-Sleep 5
- ps: Restart-Computer -Force
- ps: Start-Sleep 5
- ps: Write-Verbose -Message "Returned after restart with PSVersion $($PSVersionTable.PSVersion)" -Verbose
- ps: if ($PSVersionTable.PSVersion -lt [Version] '5.1')
{
throw 'WMF 5.1 install failed'
}
- ps: Import-Module "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
- ps: Invoke-AppveyorInstallTask
#---------------------------------#
# build configuration #
#---------------------------------#
build: false
#---------------------------------#
# test configuration #
#---------------------------------#
test_script:
- ps: |
Invoke-AppveyorTestScriptTask -CodeCoverage -CodeCovIo
#---------------------------------#
# deployment configuration #
#---------------------------------#
# scripts to run before deployment
deploy_script:
- ps: |
Invoke-AppveyorAfterTestTask