-
Notifications
You must be signed in to change notification settings - Fork 19
/
integrationtest.azure-pipelines.yml
89 lines (77 loc) · 2.71 KB
/
integrationtest.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# This pipeline configuration runs tests using a special test version
# of the Pulumi task extension that is published to the marketplace
# with private visibility and shared only with the pulumi DevOps org.
# See the package stage in azure-pipelines.yml for more info.
# YAML-based pipelines don't suport Build Completion Triggers,
# so we set this to none here. Instead, a Build Completion Trigger
# is setup using the Azure Pipelines UI for this pipeline config.
trigger: none
jobs:
- job: aws
displayName: AWS
pool:
vmImage: "ubuntu-latest"
steps:
- task: Npm@1
inputs:
command: "install"
workingDir: "./examples/aws"
- task: Test Pulumi@1
displayName: "Set stack config aws:region"
inputs:
command: "config"
args: "set aws:region us-west-2"
cwd: "./examples/aws"
stack: "$(Example.AWS.StackName)"
- task: Test Pulumi@1
inputs:
command: "preview"
cwd: "./examples/aws"
stack: "$(Example.AWS.StackName)"
- job: azure
displayName: Azure
pool:
vmImage: "ubuntu-latest"
steps:
- task: Npm@1
inputs:
command: "install"
workingDir: "./examples/azure"
- task: Test Pulumi@1
displayName: "Install Pulumi"
- script: |
pulumi stack select ${EXAMPLE_AZURE_STACKNAME}
pulumi config set azure:environment public
pulumi config set azure:location WestUS
displayName: "Set azure config for examples/azure"
workingDirectory: "./examples/azure"
env:
PULUMI_ACCESS_TOKEN: $(PULUMI_ACCESS_TOKEN)
- task: Test Pulumi@1
inputs:
azureSubscription: "$(Example.Azure.ServiceConnectName)"
command: "preview"
cwd: "./examples/azure"
stack: "$(Example.Azure.StackName)"
- job: azure_native_dotnet
displayName: "Azure Native DotNet"
pool:
vmImage: "ubuntu-latest"
steps:
- task: NuGetToolInstaller@1
- task: Test Pulumi@1
displayName: "Install Pulumi"
- script: |
pulumi stack select ${EXAMPLE_AZURENATIVEDOTNET_STACKNAME}
pulumi config set azure-native:environment public
pulumi config set azure-native:location WestUS
displayName: "Set azure config for examples/azure-dotnet"
workingDirectory: "./examples/azure-native-dotnet"
env:
PULUMI_ACCESS_TOKEN: $(PULUMI_ACCESS_TOKEN)
- task: Test Pulumi@1
inputs:
azureSubscription: "$(Example.Azure.ServiceConnectName)"
command: "preview"
cwd: "./examples/azure-native-dotnet"
stack: "$(Example.AzureNativeDotNet.StackName)"