-
Notifications
You must be signed in to change notification settings - Fork 10
/
azure-pipelines.yml
67 lines (56 loc) · 2.75 KB
/
azure-pipelines.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
64
65
66
67
pool:
vmImage: 'windows-2019'
pr: none
trigger:
branches:
include:
- master
paths:
exclude:
- azure-pipelines.yml
- README.md
- CODE_OF_CONDUCT.md
- SECURITY.md
- LICENSE
- .gitignore
- .github/*
- package
- scratch.*
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Install-Module Plaster,Pester,GuestConfiguration -force
pwsh: false
displayName: 'Install required modules'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject'
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject\editor'
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject\editor\VSCode'
copy '$(Build.SourcesDirectory)\editor\VSCode\settings.json' '$(Build.SourcesDirectory)\GuestConfigurationProject\editor\VSCode\settings.json'
copy '$(Build.SourcesDirectory)\editor\VSCode\tasks.json' '$(Build.SourcesDirectory)\GuestConfigurationProject\editor\VSCode\tasks.json'
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject\Modules'
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject\Modules\Module'
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject\Modules\DSCResources'
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject\Modules\DSCResources\Resource'
copy '$(Build.SourcesDirectory)\Modules\DSCResources\Resource\Resource.psm1' '$(Build.SourcesDirectory)\GuestConfigurationProject\Modules\DSCResources\Resource\Resource.psm1'
copy '$(Build.SourcesDirectory)\Modules\DSCResources\Resource\Resource.Schema.mof' '$(Build.SourcesDirectory)\GuestConfigurationProject\Modules\DSCResources\Resource\Resource.Schema.mof'
mkdir '$(Build.SourcesDirectory)\GuestConfigurationProject\test'
copy '$(Build.SourcesDirectory)\test\Resource.Tests.ps1' '$(Build.SourcesDirectory)\GuestConfigurationProject\test\Resource.Tests.ps1'
copy Configuration.mof $(Build.SourcesDirectory)\GuestConfigurationProject\Configuration.mof'
copy GuestConfigurationProject.psd1 $(Build.SourcesDirectory)\GuestConfigurationProject\GuestConfigurationProject.psd1'
copy LICENSE $(Build.SourcesDirectory)\GuestConfigurationProject\LICENSE'
copy plasterManifest.xml $(Build.SourcesDirectory)\GuestConfigurationProject\plasterManifest.xml'
copy project.code-workspace $(Build.SourcesDirectory)\GuestConfigurationProject\project.code-workspace'
$params = @{
Path = '$(Build.SourcesDirectory)'
NuGetApiKey = '$(apikey)'
}
Get-ChildItem $(Build.SourcesDirectory)\GuestConfigurationProject\' -recurse
#Publish-Module @params
pwsh: false
displayName: 'Publish to Gallery'