forked from shurick81/Dynamics365Configuration
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
83 lines (83 loc) · 3.9 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: $(Date:yyyyMMdd).$(Rev:.r)
pr:
branches:
include:
- develop
paths:
exclude:
- README.md
- changelog.md
- publishing
trigger:
branches:
exclude:
- develop
jobs:
- job:
displayName: Running all tests
timeoutInMinutes: 1440
steps:
- powershell: cd ci; ./booknode.ps1
displayName: Booking the hypervisor node
errorActionPreference: continue
- powershell: cd infrastructure/stacks/kitchenci-ad-sql2016dbrs; vagrant destroy DB01 --force;
displayName: Cleaning up the stack
errorActionPreference: continue
- powershell: cd tests; kitchen test URLDuplicatesDetect-win2019-basic;
displayName: kitchen test URLDuplicatesDetect-win2016-basic
errorActionPreference: continue
- powershell: cd tests; kitchen test ValidUrls-win2019-basic;
displayName: kitchen test ValidUrls-win2016-basic
errorActionPreference: continue
- powershell: cd tests; kitchen test InstallAllPrerequisitesLocal-win2019-basic;
displayName: kitchen test InstallAllPrerequisitesLocal-win2016-basic
errorActionPreference: continue
- powershell: cd infrastructure/images; ./preparevmimages.ps1 win2016-sql2016dbrs,win2012r2-ad-sql2016dbrs,win2016-ad,win2016-soe
displayName: Building images
errorActionPreference: continue
- powershell: if ( !( vagrant box list | ? { $_ -like "win2016-sql2016dbrs *" } ) ) { exit 1 }
displayName: Checking the win2016-sql2016dbrs image
errorActionPreference: continue
- powershell: if ( !( vagrant box list | ? { $_ -like "win2012r2-ad-sql2016dbrs *" } ) ) { exit 1 }
displayName: Checking the win2012r2-ad-sql2016dbrs image
errorActionPreference: continue
- powershell: if ( !( vagrant box list | ? { $_ -like "win2016-ad *" } ) ) { exit 1 }
displayName: Checking the win2016-ad image
errorActionPreference: continue
- powershell: if ( !( vagrant box list | ? { $_ -like "win2016-soe *" } ) ) { exit 1 }
displayName: Checking the win2016-soe image
errorActionPreference: continue
#- powershell: cd tests; kitchen test SaveAllResources-win2016-soe;
# displayName: kitchen test SaveAllResources-win2016-soe
# errorActionPreference: continue
- powershell: cd infrastructure/stacks/kitchenci-ad-sql2016dbrs; ..\localdeploy.ps1;
displayName: Spinning up service VMs
errorActionPreference: continue
- powershell: cd tests; kitchen test QuickProvisioning-win2019-dynamicsprereqs;
displayName: kitchen test QuickProvisioning-win2019-dynamicsprereqs
errorActionPreference: continue
- powershell: cd infrastructure/stacks/kitchenci-ad-sql2016dbrs; vagrant destroy DB01 --force;
displayName: Cleaning up the stack
errorActionPreference: continue
- powershell: cd infrastructure/stacks/kitchenci-ad-sql2016dbrs; ..\localdeploy.ps1;
displayName: Spinning up service VMs
errorActionPreference: continue
- powershell: cd tests; kitchen test QuickProvisioning2016-win2016-dynamicsprereqs;
displayName: kitchen test QuickProvisioning2016-win2016-dynamicsprereqs
errorActionPreference: continue
- powershell: cd infrastructure/stacks/kitchenci-ad-sql2016dbrs; vagrant destroy DB01 --force;
displayName: Cleaning up the stack
errorActionPreference: continue
- powershell: cd tests; kitchen test Provision90Full-win2016-sql2016dbrs-dynamicsprereqs;
displayName: kitchen test Provision90Full-win2016-sql2016dbrs-dynamicsprereqs
errorActionPreference: continue
- powershell: cd infrastructure/stacks/kitchenci-ad-sql2016dbrs; vagrant suspend;
displayName: Suspending the stack
errorActionPreference: continue
- powershell: cd tests; kitchen test Provision2016Full-win2012r2-ad-sql2016dbrs-dynamicsprereqs;
displayName: kitchen test Provision2016Full-win2012r2-ad-sql2016dbrs-dynamicsprereqs
errorActionPreference: continue
- powershell: cd ci;./releasenode.ps1
#condition: always()
displayName: Releasing the hypervisor node booking
errorActionPreference: continue