-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipelines.yml
48 lines (48 loc) · 1.91 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
{
"trigger": ["master"],
"pool": { "vmImage": "windows-latest" },
"variables":
[
{ "group": "Chocolatey CI" },
{ "name": "au_version", "value": "" },
{ "name": "au_push", "value": "true" },
{ "name": "au_test_groups", "value": "1" },
{ "name": "github_user_repo", "value": "bdukes/Chocolatey-Packages" },
{ "name": "gist_id", "value": "fd3d636b9b4617772f9b99ceb88838fa" },
{ "name": "gist_id_test", "value": "" },
],
"steps":
[
{ "checkout": "self", "persistCredentials": true },
{
"powershell": 'git config --global user.email "[email protected]"; git config --global user.name "Brian Dukes (via Azure DevOps)"; git config --global core.safecrlf false;',
"displayName": "Configure Git",
},
{
"powershell": "Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version; $PSVersionTable; git --version; choco --version;",
"displayName": "Output environment details",
},
{
"powershell": 'git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au; . "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:au_version;',
"displayName": "Install AU",
},
{
"task": "PowerShell@2",
"inputs": { "filePath": "au/update_all.ps1" },
"displayName": "Update all packages",
"env":
{ "api_key": "$(api_key)", "github_api_key": "$(github_api_key)" },
},
{
"task": "CopyFiles@2",
"inputs":
{
"sourceFolder": "$(Build.SourcesDirectory)",
"targetFolder": "$(Build.ArtifactStagingDirectory)",
"contents": "update_info.xml\nUpdate-AUPackages.md\nUpdate-History.md",
},
"displayName": "Copy artifacts to staging directory",
},
{ "task": "PublishBuildArtifacts@1", "displayName": "Publish Artifacts" },
],
}