forked from microsoft/Microsoft365DSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
49 lines (41 loc) · 2.06 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
version: 1.0.1.{build}
install:
- git clone https://github.com/PowerShell/DscResource.Tests
- npm --silent install
- ps: |
$moduleName = 'Office365DSC'
$mainModuleFolder = "Modules\$moduleName"
Install-Module ReverseDSC -RequiredVersion 2.0.0.2 -Force
Install-Module AzureAD -RequiredVersion 2.0.2.4 -Force
Install-Module MSOnline -RequiredVersion 1.1.183.17 -Force
Install-Module MicrosoftTeams -RequiredVersion 1.0.3 -Force
Install-Module SharePointPnPPowerShellOnline -RequiredVersion 3.17.2001.2 -Force
Install-Module MSCloudLoginAssistant -RequiredVersion 0.8.3 -Force
Install-Module Microsoft.PowerApps.Administration.PowerShell -RequiredVersion 2.0.26 -Force
$webClient = new-object System.Net.WebClient
$url = "https://github.com/Microsoft/Office365DSC/blob/Dev/Tests/Dependencies/SharePointOnlineManagementShell_19515-12000_x64_en-us.msi?raw=true"
$path = $PSScriptRoot + "\SharePointOnlineManagementShell.msi"
$webClient.DownloadFile($url, $path)
msiexec /i $path /quiet /qn /norestart
Install-Module Microsoft.Online.SharePoint.PowerShell -RequiredVersion 16.0.19515.12000 -Force
Import-Module Microsoft.Online.SharePoint.PowerShell -Force
Import-Module SharePointPnpPowerShellOnline -Force
Import-Module MSCloudLoginAssistant -Force
Import-Module AzureAD -Force
Import-Module MicrosoftTeams -Force
[System.Environment]::SetEnvironmentVariable('O365DSCTelemetryEnabled', $false, [System.EnvironmentVariableTarget]::Machine)
Import-Module -Name "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
Invoke-AppveyorInstallTask
build: off
test_script:
- ps: |
Invoke-AppveyorTestScriptTask `
-Type 'Harness' `
-MainModulePath $mainModuleFolder `
-CodeCovIo
after_test:
- ps: |
Invoke-AppveyorAfterTestTask `
-Type 'Wiki' `
-MainModulePath $mainModuleFolder `
-ResourceModuleName $moduleName